Greater area for radio selection

后端 未结 5 441
臣服心动
臣服心动 2021-01-14 08:00

   \"\"
   

         


        
5条回答
  •  醉梦人生
    2021-01-14 08:29

    Well, the easiest solution would be to wrap everything inside the tag, like this:

    
    

    When you specify an for attribute to label, and the same id to the field, the label becomes clickable and will activate the corresponding input.

    But, if you for some reason need to do it in jQuery, this should work:

    $('span').click(function() {
        $(this).find('input').click();
        return false;
    });
    

提交回复
热议问题