JSCode:
<SCRIPT type = "text/JavaScript">
$ (Document). Ready (function (){
$ ("# Feng01 ").Click (function (){$ ("# Feng01 "). append ("<B> Single: </B>" + $ ("# single "). val () + "<B> multiple: </B>" + $ ("# multiple ").Val (). Join (","));});
$ ('# Dingyue'). Click (function (){$. Post("Posted. aspx ",{TExx: $ ('# tongxun'). Val ()}, Function (data) {$ ('# basicmodal ').HTML (Data)});});})
</SCRIPT>
HTML code
<Div>
<Asp: textbox id = "tongxun" runat = "server" width = "120px"> enter email subscription: </ASP: textbox>
<Id = "dingyue"> Subscription </a> <br/>
<PId = "feng01"> Click me </P> <br/>
<Select id = "single">
<Option> single </option>
<Option> single2 </option>
</SELECT>
<Select id = "multiple" multiple = "multiple">
<Option selected = "selected"> multiple </option>
<Option> multiple2 </option>
<Option selected = "selected"> multiple3 </option> </SELECT>
</Div>
The poset. ASPX page directly uses the response. Write () method to return data.
Jquery-based text and HTML code
HTML Element
HTML ();
HTML (VAL );
Form
Val ()
Val (VAL)
HTML element attributes
ATTR (Key, value );
ATTR (Key, FN );
ATTR (name );
ATTR (properties );
Removeattr (name );
HTML text content
Text ();
Text (VAL );