Radio textarea initial value

The self-closing tags initial value with $ () val (), such as:. <INPUT type = "text" name = "text" value = "123">
Closing tag initial value with $ () text (), such as:. <TextArea ID = "id_textarea"> </ TextArea>
Textarea tag to the initial value # 
$ ( '# id_textarea') text ($ ( '# form_text') attr ( 'my_text').).;
 
// to radio initial value 
$ ( "# id_0") attr ( "checked", $ ( '# id_radio') attr ( 'gender') == ' Male' to true:.? False);. 
$ ( " # id_1 ".) attr (" checked ", $ ( '# id_radio') attr ( 'gender') == ' female' to true: false);.? 
$ (" # ID_2 the checked ",") attr (. " . $ ( '# id_radio') attr ( 'gender') == ' unknown' to true: false);? 
form.render (); // update all

 

Guess you like

Origin www.cnblogs.com/suguangti/p/11275525.html