javascript - multiple select get recently selected option value -


i want know last or selected option value dropdown

i have tried following code in django :

    <script type="text/javascript">         django.jquery(document).ready(function(){             django.jquery("#id_emuhibah_issue").on("click", function(e){                 console.log(" click -------");                 console.log(django.jquery(this).val());                 console.log(this.value);             });         });          django.jquery(document).ready(function(){             django.jquery("#id_emuhibah_issue").on("change", function(e){                 console.log(" chage -------");                 console.log(django.jquery(this).val());                 console.log(this.value);             });         });      </script> 

seems there no luck find out last selected value

can suggest solution above case?

just remove click function , use on.("change" function..) 1 function 1 "document ready"


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -