c# - Can java script add the contents below to a table aswell -


Does the JavaScript insert content (with html tags) at the same time as the ASP table < Previous> & lt; Script type = "text / javascript" & gt; Val (); $ ('Textarea') Val (''); $ ('# Test1') .andand ('

' + x + '';) return false;});}); & Lt; / Script & gt; & Lt; Textarea style = "border: 0" cols = "77" lines = "2" & gt; Write something ... & Lt; / Textarea & gt; & Lt; Button & gt; Post message & lt; / Button & gt; & Lt; Div id = "test1" & gt; & Lt; / Div & gt; & Lt; / ASP: Content & gt;

Something like this:

  & lt; Script type = "text / javascript" & gt; Val (); $ ('Textarea') Val (''); $ ('# Test1') .andend ('' + x + '';); // $ also add; Table 1 returns incorrect;});}); & Lt; / Script & gt;    

  & lt; Script type = "text / javascript" & gt; Click $ (function () {$ ('button') (function () {var x = $ ('textarea'). Val (); $ ('textarea'). Val (''); var newdiv = $ $ ('# Table1') ("& lt; div> .append (newdiv); // $ Table 1 return also add as false;})}};); & lt; / script & gt; < / Code>   

Comments