c# - jQuery event binding issues with radio buttons -
When I load the document on my radio button, then I try to bind an onClick function to get jQuery I am here.
ASP goes back to the database and finds all open markers and then it sends feedback on the page with raw HTML to create an image of a radio button and marker. What I need to do is jQuery (or anything for that matter), an onclick bind, which indicates what is clicked on, so I can send that marker back to the database to add a person .
I have tried till now which is a fat one. In debugging I added alerts to each function and I look like 3x, but This is the html radio button on the form This is codebehind for that call Bella I have a source pasted from this function in the post. I have two questions. I am very new to the web, so if I am duly out of the mark, then I am open to suggestions. attr ('id') is undefined.
& lt; Br / & gt; & Lt; P & gt; Choose the open marker for the new user: & lt;% getMarkers (); & Gt%; & Lt; / P & gt;
while (reader.Read ()) {if (readIndex% 3 == 0) markerTable + = " & Lt; tr & gt; "; String marker id = reader ["marker_id"]. ToString (); String filename = reader ["marker_filename"]. ToString (); MarkerTable + = "& lt; td> Input & Lt; / Labels & gt; & Lt; / Input & gt; Label for & quot; & Lt; Label = & lt; / TD & gt; "; ReadIndex ++; if (readIndex% 3 == 0) MarkerTable +" "& lt; / tr & gt;"; } If (readIndex% 3! = 0) markertable + "" & lt; / Tr & gt; "; MarkerTable +" "& lt; / table & gt;"; } And markertable = "& lt; p & gt; not empty marker. Please delete the user to continue. & Lt; / p & gt;"; SCon.Close (); Return MarkerTable;
$. Document .ready () Why are the characteristics unaffected?
$ (document) .ready (function () { $ ('Input: Radio') Each (function (radElem) {var radId = $ (this) .attr ('id'); Alert (radId);}); $ ('Input: radio'). 'Click', function () {warning ('click');});});
Comments
Post a Comment