Default selection methods for some single-choice and check boxes in php (example)

Source: Internet
Author: User
Php default selection methods for some single-choice and check boxes (example), 1. the default implementation code of radio, checkbox, and phpselect; 2. select tag, single choice, and check box are used to set the default option. default selection of radio and select in js

I. implementation code selected by default by radio, checkbox, and php select

1. default implementation of radio single queue

Sample code:

> Blank> Transfer> Transfer> Group

2. implementation of the default checkbox check box

Sample code:

>Home appliances
  
   
>
  Kitchen utensils
  
   
>
  Bedding
  
   
>
  TV set

These form fields are suitable for modifying some database records and keeping the original records the same as when adding them!

3. select selected items by default

Sample code:

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.