maybe something like this?
       var selected = $(this).children().filter(':selected');

This is untested, and can probably be written a lot shorter.

Throw a couple of console.log(); lines in there and I'm sure you'll figure out what's wrong. If it still doesn't work, post your page online somewhere.


123gotoandplay wrote:
this is what i have now


         $('#type').change(function() {
        if($('#type :selected').text() == "parttime") {
     } else {

On Feb 17, 2:08 pm, 123gotoandplay<>  wrote:
How do i show a input field only when a certain option is selected?
and hide if it isn't selected


Jonathan Vanherpe - Tallieu & Tallieu nv -

Reply via email to