Read-only method for common HTML tags

Source: Internet
Author: User

1 <ahref= "Baidu.com"onclick= "Event.returnvalue=false;">Baidu</a>a linked read-only2 3 <Selectname= "pid"class= ' pp 'Disabled>read-only for drop-down boxes4     <optionvalue= "{$list _info.id}">{$list _info.satisfied_name}</option>                          5 </Select>6 <inputtype= "Radio"value= ' 1 'checked= ' checked 'Disabled= ' disabled '/>read-only button7 8 <textareaname= "Input_content_add_infos"class= ' Input_content_add 'style= ' Resize:none; ' ReadOnly></textarea>no drag and read only9 Ten  One The checkbox does not have a ReadOnly property, and if you use the disabled= "disabled" attribute, the checkbox will be grayed out, and the user is disgusted that this style allows it to remain read-only: ASet its onclick= "return false"

Read-only method for common HTML tags

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.