How to get the value of option select box in jQuery if I have the code like this,
media1
Use class instead of id like this..
media1 media2 media3 $(document).ready(function(){ $(".media").live("change",function(){ var id = $(this).val(); var dataString = 'id='+ id; alert(id); return false; }); });