asp.net - set value of radio button back to false -
Okay, I'm trying to do this work for something now and think that enough is enough and you Help to leave Based on what I click, right or wrong, this will give reasons to show or hide my table accordingly. My point is, if I cancel (outside) this outside, when the selected "true" is, and it comes back to it, the "true" will still be chosen and vice versa. What I want to achieve, regardless of the selected value, when I turn it off and come back, the selected value should be set to "false". Any ideas?
& lt;% var rblRecurrence = New SelectList (new list & lt; ListItem & gt; {New ListItem {Text = "Yes", Value = "true"}, New ListItem {Text = "No", value = "wrong"}}, "value", "text", "wrong"); Var htmlAttributes = new dictionary & lt; String, Object & gt; {{"Onclick", "if (eval (this.value)) {$ ('# tblrecurrence'). Show ('slow');} and {$ ('# TBL Records'). Hide ('slow') ;} "}}; Forchach (WR RLL in RBL Recurrence) {%> & Lt;% = Html.RadioButton ("rblRecurrenceVal", rbl.Value, rbl. Selected, HTML attributes)% & gt; & Lt; Label & gt; & Lt;% = rbl.Text% & gt; & Lt; / Labels & gt; & Lt;%}% & gt;
I think that when you say that you close, Are not locked or page, but just one section inside the page
So I'm guessing that you have some kind of script somewhere else that opens this section. There you want to reset the values of your radio button.
I will try something like this
$ ('input [name = "rbl recurrenceVal"] [value = "false"]') Attr ('checked', true);
If I am wrong about the work of your page, then what do you mean by " this ", it should be expanded ... if I cancel Do I make it off (stop) it ...
Comments
Post a Comment