Question
dynamic checking of radio and checkboxes
On CF8, my existing code of determining whether to
dynamically have a radio button or checkbox checked doesn't seem to
be working.
Here's my workaround that I'm using now:
<cfif StructKeyExists(cookie.sitename_rememberme)>
<cfinput type="radio" name="returning_cust" value="1" checked="yes">
<cfelse>
<cfinput type="radio" name="returning_cust" value="1" checked="no">
</cfif>
In the past, I would have done something like:
<input type="radio" name="returning_cust" value="1"<cfif StructKeyExists(cookie.sitename_rememberme)> checked="yes"</cfif>>
Here's my workaround that I'm using now:
<cfif StructKeyExists(cookie.sitename_rememberme)>
<cfinput type="radio" name="returning_cust" value="1" checked="yes">
<cfelse>
<cfinput type="radio" name="returning_cust" value="1" checked="no">
</cfif>
In the past, I would have done something like:
<input type="radio" name="returning_cust" value="1"<cfif StructKeyExists(cookie.sitename_rememberme)> checked="yes"</cfif>>
