Hello I'm trying to make a sertain radio button the default. How would I get about doing this? Here is my coding so far:
I want the default to be edit. If print is selected and the page reloads it will try to print again. I tried to do
With no luck. Any help would be great.
Thanks
Code:
<td> Edit <input type="radio" name="Ptype" value="Edit"<cfif #Session.PType# IS "Edit">CHECKED</cfif> onClick="this.form.submit();"> Print <input type="radio" name="Ptype" value="Print"<cfif #Session.PType# IS "Print">CHECKED</cfif> onClick="this.form.submit();"></font> </td>
Code:
<cffunction name="setDefaultProperties"> <cfset "PType" IS "Edit"> </cffunction>
Thanks
Comment