Home > DeveloperSection > Forums > jquery change function not working on dropdown
john rob

Total Post:108

Points:756
Posted on    August-22-2014 1:00 AM

 JQuery JQuery 
Ratings:


 1 Reply(s)
 771  View(s)
Rate this:

jquery change function not working on dropdown

<script type="text/javascript">

$(document).ready(function () {

 $("#title").change(function () {

        var abc = $(this).val();//previously i mentioned this in "" by mistake please update it.

        alert(abc);

    });

});

</script>



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-22-2014 1:58 AM

Hi John, 
try this:

$("#title").live('change', function() {

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

        alert(abc);

    });


Don't want to miss updates? Please click the below button!

Follow MindStick