i have radio buttons on 1 page clear when linked page. want make sure remain checked. problem here dynamic, not used to. there loop may loop 5 times.
this have tried dynamic:
<cfif isdefined("session.checkout.info["flresident_" & add]") , session.checkout.info["flresident_" & add] eq "yes" >checked</cfif> <cfif structkeyexists("session.checkout.info["flresident_" & add]") , session.checkout.info["flresident_" & add] eq "yes" >checked</cfif>
html
<label for="flresident_<cfoutput>#add#</cfoutput>"> florida resident? </label> <cfoutput> <input type="radio" value="yes" name="flresident_#add#" id="flresident_#add#" required="yes" <cfif isdefined("session.checkout.info["flresident_" & add]") , session.checkout.info["flresident_" & add] eq "yes" > checked </cfif>/> </cfoutput> <label for="flresident_<cfoutput>#add#</cfoutput>">yes</label> <cfoutput> <input type="radio" value="no" name="flresident_#add#" id="noflresident_#add#" <cfif isdefined("session.checkout.info["flresident_" & add]") , session.checkout.info["flresident_" & add] eq "no" > checked </cfif>/> </cfoutput> <label for="noflresident_<cfoutput>#add#</cfoutput>">no</label>
can tell going wrong?
Comments
Post a Comment