Skip to content

Instantly share code, notes, and snippets.

@feliperomero3
Last active February 8, 2024 06:07
Show Gist options
  • Save feliperomero3/bc702318ea1dddf3b1bc to your computer and use it in GitHub Desktop.
Save feliperomero3/bc702318ea1dddf3b1bc to your computer and use it in GitHub Desktop.
jQuery snippets
var toCheck = $('input[type=checkbox]').filter('[value=' + rateCode + ']');
//$('input[type=checkbox]').filter('[value=1022]').attr('checked', true);
var toCheck3 = $('input[type=checkbox][value="' + rateCode + '"]');
$('input[type=checkbox][value="1024"]').attr('checked', true);
var toCheck2 = $(':checkbox[value=' + rateCodeP + ']');
//$(':checkbox[value='+rateCodeP+']').attr('checked', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment