Hi there,

I'm new to jQuery.  I've tried out a few AJAX things in the past, but I am very happy to settle on jQuery as it seems to have everything a developer could need :)

I'm having a bit of trouble though, and I appologise if I sound thick, but I would like to use jQuery to create dynamic forms and I cannot seem to get it to work.

I am creating a Contact tool, and with the tool I have a dropdown that allows you to select the type of contact (person, place, company, etc).  Based on the option selected, I want to present the required fields to the user, and remove fields not required from the view.

I've tried to look through the docs, and cannot find what I am looking for.  What I want to do, is have a script that grabs the value from my select field (name="contact_type" class="contact_type") and based on this value, runs a short script to show and hide the required fields.

I think once I get over this problem, the rest of the development should be relativly easy.

Any help would be appreciated.

Regards,
Tane Piper
No Half Measures
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to