The Jquerymobile framework encapsulates a new representation of native HTML form elements and optimizes the operation of touch-screen devices.Data-theme= "B"--the subject of the specified element is a black theme;Effects in IPhone6: Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. Jquerymobile Components--check box (checkbox) and radio button (
Article original, reproduced please note the article from: http://blog.csdn.net/xxd851116/archive/2009/03/16/3994833.aspx
Defects of Single-choice buttons on the webpage: when one group of single-choice buttons is selected, the reorganization button cannot be unselected, resulting in one option being selected and poor user experience.
Solution:
Use JavaScript (use the checkbox to cancel selection to change the single-choice
radio buttons and check buttons are frequently used during the development process, and I'll go through the jquery operation radio buttons and check buttons:
radio button:
Get a radio button object through jquery We have three
1. Group Single-choice buttons:
Set attributes for the first single-choice button in each group: group, tabstop, and auto. Set attributes for other buttons: tabstop and auto.
For example:
Radio1, Radio2, and radio3 are a group, and radio4 and radio5 are a group.
Set radio1 attributes: group, tabstop, auto
Set the Radio2 attribute: tabstop, auto
Set the radio3 attribute: tabstop, auto
Set radio4 attributes: group, tabstop, and auto
Set the radio5 attri
The PHP code gets the value of the radio button in the form: (The radio button lets us select only one, there is a "checked" property, which is used by default, which is the default value each time we refresh our page.) )Cases:1 formname= "MyForm"Action=""Method= "POST">2 Gender:3 inputtype= "
Reprint please indicate the source: The Curtain Roll westerly column (Http://blog.csdn.net/ljxfblog)The COCOS2DX has a checkbox and a button, but the checkbox is a check box and there is no table button, this article mainly uses these two controls to implement the function of the radio box and the Table button. The mai
button. You can click the button to change the text of the button. Simply add the setdlgitemtext function to the Message response function, when a button is clicked, the text of the button is changed.
Int ret; updatedata (true); setdlgitemtext (idok, "pressed"); char * SZ =
$ ("Input[name=ptype]"). Bind ('click', function () { If ($ (this). Prop ("checked")) { = $ ( this). Val (); } ); // PType is the option that selects the name redio1 variable of the selected itemcheck box:function Somecheck () {varAlertinf ="" varCList = Document.getelementsbyname ("ck");//CK is the name of the check box selection item for(i =0; i ) { if(Clist[i].checked==true) {Alertinf+ = Clis
HTML structure:
1, to set a single selection of input for the selected state:
① can set its properties checked to True
$ ("input[type= ' Radio ']"). EQ (1). attr (' checked ', true);
Click the expand Code, easy to read ② can also set its properties checked as ' checked ', the original selection will be automatically unchecked after setting
$ ("input[type= ' Radio ']"). EQ (1). attr (' checked ',
Mr. deficit was posted on 17:43:39
In a project, to use radiobutton in a DataGrid, a group of radiobutton is displayed in a column, which is mutually exclusive. Only one radiobutton can be selected at a time. For example: First, try to use the Server Control radiobutton as the control of the DataGrid template column: Here, we try to use groupname = "country" to group the radio buttons in this column so that all the
Usage of VC ++ ------------ Radio Button
Add two radio buttons to the dialog box, Radio1 and Radio2.Question 1: How do I select Radio1 or Radio2 by default? How do I know which one has been selected?The key is to select the option. You only need to place the "default" option in OnInitDialog. You can choose one of the three methods,First:(CButton *) GetDl
Prototype library website-Original release of lecturer Jin Wu, which can be freely reproduced. Please indicate the source!
Axure Official Website: www.axurerp.cn
Axurerp7.0 parts details
Radio button
Common Cases
In the formA single-choice button is often used to switch from one group to another.This option can trigger interaction on the page or cross-page inte
associated variable is 1, and so on .)List their tabsORDER. On the Resource Panel of the dialog box, press Ctrl + D and click one by one in the desired order. Assume that Radio1, Radio2, Radio3,Radio4 is 1, 2, 3, and 4 respectively. Radio1 and Radio3 both select the Group attribute. Therefore, 1 and 2 are the same Group, and 3 and 4 are the other groups, because the grouping principle is on the selection.The start of the Group attribute until the next option is selected. Ctrl + D again to make
group and 3
4 is another group, because the grouping principle is to select the group attribute from the beginning until the next group attribute is selected.
CTRL + D again to make radio1, Radio2, radio3, and radio4 respectively 1, 3, 2, and 4. Then radio1 and radio3 are a group.
If m_nradio1 = 1, radio3 is selected instead of Radio2. Use them separately after grouping.
Well, it's very easy to add mouse-click events for them.
Use of the radio
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.