stuck Posted October 7, 2009 Report Posted October 7, 2009 could jquery be used to show xtra fields on a form when a checkbox is ticked? i want to display part of a form only if a checkbox is ticked. does anybody know if this is possible. If so, how would i go about implementing this. I have looked thru hundreds of jquery tutorials but unable to find one...please help! Quote
stuck Posted October 7, 2009 Author Report Posted October 7, 2009 it doesnt even need to be a checkbox - it could be a select field where one of the options reveals the extended part of the form. is this possible? Quote
Andrea Posted October 7, 2009 Report Posted October 7, 2009 Sorry, I don't have an answer. Hopefully, somebody else will, but posting the same question 5 times is NOT going to get it answered any faster. Quote
falkencreative Posted October 7, 2009 Report Posted October 7, 2009 You can check if a checkbox has been checked by using this code: http://requiem4adream.wordpress.com/2009/05/10/how-to-check-if-checkbox-is-checked-using-jquery/ If that returns true (the checkbox is checked) using use jquery to show a div that includes all of the extra form elements you want to show. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.