Is there a way to send data to aspcontrol that calls label label 1? Through Jquery?
I know that jquery likes html only, but there is a way to send raw text in the asap control using the same method:
& lt ; Script type = "text / javascript" & gt; $ (Function () {$ ('button') (function () {$ (document) .ready (function () {var x = $ ('textarea'). Val (); $ ('textarea') .val (''); var label = $ ("# & lt;% = Label1.ClientID%>"); var newdiv = $ (" "). Html (x) atr ('id', 'test'); $ ('# test1') .andand (newdev) var serializer = new xml attribute (label); label text (serializer. SerializeToString )); Return Return;});});}); & Lt; / Script & gt;
I think the major issue asp.net has changed the ID and it Attempting to get the code is not that easy.
Can you use the name attribute? If so, you can see the name attribute using the Jacob selector '[name * = "your name"]. EDIT: Adding firebug means I have a lot of help to check page elements and what exactly you can use (formerly: asp.net adds a name attribute on a button by default) and what is going on (Such that your return is failing false), then tweaking your jquery with the clock window
Sample Asp.net form content:
& lt; P & gt; & Lt; ASP: Text Box ID = "Textbox 1" name = "textbox" run = "server" rows = "3" & gt; & Lt; / Asp: text box & gt; & Lt; / P & gt; & Lt; P & gt; & Lt; ASP: Button ID = "Button 1" Runat = "Server" Text = "Button" /> gt; & Lt; / P & gt; & Lt; P & gt; & Lt; ASP: label ID = "label1" name = "label1" run = "server" text = "label" & gt; & Lt; / Asp: label & gt; & Lt; / P & gt; & Lt; Div id = "test1" & gt; & Lt; / Div & gt; jquery:
$ (function () {$ ('[* * *' 'button1 "]). Click (function () {Var * x = $ ('[name * = "textbox1"]'). Val (); var newdiv = $ (" "). Html (x) .attr ('id', '$' ('[name * = "Label1"]'). Text ($ ('# test1') .HTML ()); $ ('[name * = "text box 1" ] '). Val (' '); return false;});});
Comments
Post a Comment