As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
Options

Modifying a form in real time with JQuery

DelzhandDelzhand Hard to miss.Registered User regular
edited March 2010 in Help / Advice Forum
I have a dropdown box with a list of states, and another with a list of counties. I'd like only the counties from the selected state to appear in the list, but I'm not sure how to go about doing it. My experience with JQuery so far is primarily in modifying the appearance of items, I haven't really used it with forms until now.

Delzhand on

Posts

  • Options
    admanbadmanb unionize your workplace Seattle, WARegistered User regular
    edited March 2010
    Have an onChange callback for the states drop-down that calls a javascript function with its new value. Then you'll probably want to use something like insertAfter or replaceWith.

    admanb on
Sign In or Register to comment.