Validating a radio button is checked with jQuery

前端 未结 7 1730
你的背包
你的背包 2021-01-13 07:17

On my form I havea set of radio buttons. Here\'s the mark up:

Format

7条回答
  •  南方客
    南方客 (楼主)
    2021-01-13 07:37

    demo

    http://jsfiddle.net/Vq2jB/2/

    var isChecked = jQuery("input[name=fileType]:checked").val();
    

提交回复
热议问题