Get desired value of selectbox through jquery
问题 Here i have three dropdowns with differents values and the code looks like as follows. To get the value of the corresponding dropdown using jquery i had this but it always gets same value please have a look $(".one").hide(); $(".two").hide(); $(".three").show(); var name_type=$("#abc_type_1").attr('name','type'); $("#abc_type_2").removeAttr('name'); $("#abc_type_3").removeAttr('name'); $("input[name=select_type]:radio").change(function () { if($(this).val()=='1') { $(".one").show(); $(".two")