How to debug using firebug and show the value of radio button

前端 未结 2 995
我寻月下人不归
我寻月下人不归 2021-01-26 06:08

I have radio buttons as shown below.

        
2条回答
  •  旧时难觅i
    2021-01-26 06:13

    In your javascript you are getting the value of the div, not the radio button:

    $('#lensType').val() <--- change that
    

    To something like this:

    $("#lensType input:radio[name='design']:checked").val()
    

提交回复
热议问题