can you combine text() equals

61
November 30, 2021, at 07:50 AM

Can you combine all these into 1 statement using text() === ?

If so , how would you do that ?

$(".divTest").filter(function () {
    return $(this).text() === "100%";
}).css("display", "none");

$(".divTest").filter(function () {
    return $(this).text() === "0%";
}).css("display", "none");

$(".divTest").filter(function () {
    return $(this).text() === "N/A";
}).css("display", "none");

$(".divTest").filter(function () {
    return $(this).text() === "NaN%";
}).css("display", "none");
READ ALSO
Running the command node dist/index.js gives an error related to Typescript files in src folder

Running the command node dist/index.js gives an error related to Typescript files in src folder

I have a GraphQL and Apollo server https://githubcom/AdhamAH/Film-and-actors-list/tree/main/server

69
Android 11: How to access app specific files from Browser

Android 11: How to access app specific files from Browser

My app is creating some html files (reports) that user can open by using web browser

73