# Modifying form with jQuery not working(help)

**URL:** <https://community.hubspot.com/t/modifying-form-with-jquery-not-working-help/11474>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [September 7, 2018, 11:04pm UTC](https://community.hubspot.com/t/modifying-form-with-jquery-not-working-help/11474 "2018-09-07T23:04:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_w](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chris_w/32/89259_2.png) [@Chris\_w](https://community.hubspot.com/u/Chris_w)\
**Post date:** [September 7, 2018, 11:04pm UTC](https://community.hubspot.com/t/modifying-form-with-jquery-not-working-help/11474/1 "2018-09-07T23:04:43Z")

</div>

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();  
}  
}

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [September 14, 2018, 6:15pm UTC](https://community.hubspot.com/t/modifying-form-with-jquery-not-working-help/11474/2 "2018-09-14T18:15:13Z")

</div>

Hi [@chris.w\_AML](https://community.hubspot.com/u/chris.w_aml),

It looks like this is the original topic related to [jQuery Not Working](https://integrate.hubspot.com/t/jquery-not-working/12336) and [Adding jQuery makes the form disappear](https://integrate.hubspot.com/t/adding-jquery-makes-the-form-diapear/12448).
