Get radio button value? ?

Category: Web Develop
 
kelvinbb
2013-01-28 05:32:31

Sponsored Links
<td>
<input type = "radio" name = "traMethod" value = "1" <% info.getTraMethod () = "1"? "checked": ""% >> Aviation
; <input type = "radio" name = "traMethod" value = "2" <% info.getTraMethod () = "2" ? "checked": ""% >> Railway
<input type = "radio" name = "traMethod" value = "3" <% info.getTraMethod () = "3"? "checked": ""% >> road
</td>

Will wrong there?

Sponsored Links

lyb888
2013-01-28 05:47:41
info.getTraMethod () method is where they come
swimcn
2013-01-28 06:27:08
<% info.getTraMethod () = "1"? "checked": ""%>

think this is a problem I think it should be

<% = info.getTraMethod (). equals ("1")? "checked": ""%>

another analogy
a2611928
2013-01-28 06:57:26
info.getTraMethod () is what ah?
jiaojihan2
2013-01-28 07:37:10
<td>
<input type = "radio" name = " ; traMethod "value =" 1 "<% = info.getTraMethod () =" 1 "?" checked ":" "% >> Aviation
; <input type = "radio" name = "traMethod" value = "2" <% = info . getTraMethod () = "2"? "checked": ""% >> Railway
< ; input type = "radio" name = "traMethod" value = "3" <% = info.getTraMethod () = "3"? "checked": "" ;% >> Road
</td>
quentin_xing
2013-01-28 07:58:21
<td>
; <input type = "radio" name = "traMethod" value = "1" <% info. getTraMethod () = "1"? out.print ("checked"): ""% >> Aviation
; <input type = "radio" name = "traMethod" value = "2" <% info.getTraMethod () = "2"? out.print (" ; checked "):" "% >> Railway
<input type =" radio " ; name = "traMethod" value = "3" <% info.getTraMethod () = "3"? out.print ("checked"): ""% >> Highway
</td>
sekongkongse
2013-01-28 08:19:11
<% = can be added later on the page output value. And info.getTraMethod () = "1" should be "1". Equals (info.getTraMethod ()) is more appropriate.
<% = "1". equals (info.getTraMethod ())? "checked": ""%>
xv1984
2013-01-28 08:28:44
with js judge ah! ! ! !
chenhaijunone
2013-01-28 08:33:52
<% info.getTraMethod () = "3"? "checked": ""%> should not have problems
zcj71001433
2013-01-28 08:36:28
< ; td>
<input type = "radio" name = "traMethod" value = " ; 1 "<% info.getTraMethod () ==" 1 "?" checked ":" "% >> Aviation
; <input type = "radio" name = "traMethod" value = "2" <% info.getTraMethod () == "2" ;? "checked": ""% >> Railway
<input type = "radio" ; name = "traMethod" value = "3" <% info.getTraMethod () == "3"? "checked": ""% >> Road
</td>
judgment should be "=="! ! ! ! ! !
fang88888888
2013-01-28 08:39:02
string to be equals
lanyeshao
2013-01-28 08:50:20
Agree upstairs upstairs
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.