Modifying form with jQuery not working(help)

forms

#1

I am trying to create an everything checkbox that checks all boxes in the form, using jQuery. However I am not able to modify the form fields whatsoever. here is my code, I have tried using onFormReady and waiting for the page to load, but nothing works.

if(jQuery('body').hasClass('page-id-11656')){
jQuery(window).on('load', function() {
jQuery('#firstname-699e31bd-37b4-4a14-a5de-2fca0703842a').val('Brian').change();
});
onFormReady($form, ctx){
jQuery('#firstname-699e31bd-37b4-4a14-a5de-2fca0703842a').val('Brian').change();
}
}


#2

Hi @chris.w_AML,

It looks like this is the original topic related to jQuery Not Working and Adding jQuery makes the form disappear.


#4