The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Share:
Notifications
Clear all

[Solved] Checkbox default

3 Posts
2 Users
0 Reactions
787 Views
Posts: 14
Topic starter
(@vladoff)
Eminent Member
Joined: 4 years ago

Hi, Please tell me how to make the checkbox pressed by default?

Безымянный
2 Replies
Asti
Posts: 7240
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi @vladoff,

try the following js code:

jQuery('#wpdcom .wpd-field-agreement .wpd-field').prop('checked', true);

Please make sure this kind of option complies GDPR. 

Helpful article: https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-javascript-in-wordpress-pages-or-posts/

1 Reply
(@vladoff)
Joined: 4 years ago

Eminent Member
Posts: 14

@asti

Thank you so much!

Share: