JQUERY CHANGE FUNCTION NOT WORKING ON DROPDOWN

john rob

Total Post:108

Points:756
Posted by  john rob
JQuery 
 1098  View(s)
Ratings:
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>

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: jquery change function not working on dropdown

    Hi John, 

    try this:

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

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

            alert(abc);

        });

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!