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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.