Hi Friends..
i have one form where combobox is include...
i want to use popup form with respect to selected combo box values using jquery function....
i have this code for combo box..

<label  id="label">First Schedule </label>
<select  name="cmbFS" id="cbmFSId" style="width:205px;">
<option value="">---SELECT---</option>
<option value="FSchedule" >Second Shedule</option>
<option value="Reject">Reject</option>
</select>

jQUERY CODE IS

<script type="text/javascript">

    ;(function($) {


        $(function() {

            ///For 1st schedule interview
            $('#cbmFSId').bind('change', function(e) { 
                e.preventDefault();        
                $('#Interviews').bPopup();

            });

            ///For 2nd Schedule Interview
            $('#cbmSSId').bind('change', function(e) { 
                e.preventDefault();        
                $('#Interviews').bPopup();                          

            });



        });

    })(jQuery);



</script>

THE PROBLEM IS I WANT TO BIND VALUES OF COMBOBOX TO SHOW SOME SPECIFIC FORM..HOW TO DO IT?
rEGARDS..
FARHAD IDREES

Recommended Answers

Like this:

///For 2nd Schedule Interview
$('#cbmSSId').bind('change', function(e) { 
    e.preventDefault();        

    var value = $(this).val();

    if ( value == 'Interviews' ) {
        $('#Interviews').bPopup();    
    }                      
    else if ( value == 'Something Else') {

    }
    else {

    }

});
Jump to Post

All 2 Replies

Like this:

///For 2nd Schedule Interview
$('#cbmSSId').bind('change', function(e) { 
    e.preventDefault();        

    var value = $(this).val();

    if ( value == 'Interviews' ) {
        $('#Interviews').bPopup();    
    }                      
    else if ( value == 'Something Else') {

    }
    else {

    }

});

Thanks..Got it dude...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.