Click here to Skip to main content
15,850,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i need a javascript or jquery syntax that can check a checkbox with matching text. For example - if i have "Film" as text coming as parameter from different page then out of MultiSelect DropDownList, the one which matches "Film" text should get checked. dynamically.

What I have tried:

I have already tried this "jQuery('.editbutton').click(function($) {
    jQuery(this).closest('tr').find('[type=checkbox]').prop('checked', true);
});"

jQuery('"+Name+"').closest('input').find('[type=checkbox]').prop('checked', true);

here
Name
= value will be received from different page (as a query string)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900