Implementation details for JavaScript Radio list (multi-browser compatible) _ form effects

Source: Internet
Author: User
Tags cdata
can support directional keys
When Radio is last selected, pressing the keypad automatically jumps back to the first
Checked can automatically trigger the onclick
Supports various browsers, Cross-browser
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" > <ptml> <pead> <title>rank ' s HTML document</title> <meta http-equiv= "Content-type" content=; charset=gb2312 "> <meta http-equiv=" Pragma "content=" No-cache "> <meta http-equiv=" Cache-control "content= "No-cache" > <meta http-equiv= "Expires" content= "0" > <meta http-equiv= "imagetoolbar" content= "no" > < Meta http-equiv= "Creator.name" content= "Rank, Bluedestiny, never-online" > <style "type=" text/css "default "Media=" screen ">/*<! [cdata[*/body {font:13px/1.5 arial;} /*]]>*/</style> </pead> <body> <p>radio List's magical uses </p> <ol> <li> can support the directional key & Lt;/li> <li> When radio last checked, pressing the keypad automatically jumps back to the first </li> <li>checked automatically triggers onclick</li> <li> Support various browsers,cross-browser</li> </ol> <p>demo</p> <p id= "wrap" > <inputName= "Radio_n" type= "Radio" ><input name= "Radio_n" type= "Radio" ><input name= "Radio_n" type= "Radio" > <span id= "ad" ></span> </p> <script type= "Text/javascript" >//<! [cdata[document.getElementById (' wrap '). onclick = function () {document.getElementById (' ad '). InnerHTML = (' Never-online \ ' s weblog ') + math.random (); }//]]></script> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Related Article

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.