HTML <form> related forms

Source: Internet
Author: User

The Action property specifies where to send the form data when the form is submitted

Radio grouping

As long as name is a group, you can select only one group.

<input type="radio" id="radio1" name="group1" /> radio1<input type="radio" id="radio2" name="group1" /> radio2<input type="radio" id="radio3" name="group1" /> radio3
Gets the node of the selected radio
使用jquery可以很方便的做好,先选择group,然后过滤出checked的,如下:var group1 = $("[name='group1']").filter(':checked');console.log(group1.attr('id'));选中其中的一个节点使用jquery设置checked属性$('#radio2').attr('checked','checked');

HTML <form> related forms

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.