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!
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?
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.
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now