0

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

2
Contributors
2
Replies
9
Views
4 Years
Discussion Span
Last Post by Farhad.idrees
0

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 {

    }

});
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.