Home:ALL Converter>how to get an checkbox by value generated with javascript

how to get an checkbox by value generated with javascript

Ask Time:2017-12-17T10:33:43         Author:Naddam

Json Formatter

I try to get an checkbox by value generated with javascript but my checkbox stay checked

$("input[value=varJs]").prop('checked', false);

I am not sure how to do this, is it possible?

Author:Naddam,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/47851728/how-to-get-an-checkbox-by-value-generated-with-javascript
Malachi :

you need to concatenate the variable into the selector, like this:\n\n$(\"input[value=\" + varJs + \"]\").prop('checked', false);\n",
2017-12-17T02:35:47
yy