Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript : Radio Button query 1

Status
Not open for further replies.

jlawler

Programmer
Feb 26, 2003
14
IE
Is it possible to put a radio button in a form that is checked when loaded, and is hidden.

I want to hide the following button and have it checked by default.

Code:
<input type=&quot;radio&quot; name=&quot;lc_category&quot; value=&quot;<%= productCategory.getCategoryPK() %>&quot; onClick=&quot;javascript: setOnChangeAction('selectqq', 'lc_type<%= productCategory.getCategoryPK() %>', 'lc_category', '<%= productCategory.getCategoryPK() %>', <%= arrayIdName + &quot;[&quot; +selectedIndexCode+&quot;]&quot; %>);&quot; style=&quot;background : #ccccff&quot; >

Any help is much appreciated
Thanks
jlawler
 
You can add:

Style=&quot;display:none;&quot;

but why use a radio button? why have an onClick? why give it a display style? Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179
mikewolf@tst-us.com (Do not email regarding this thread unless requested - I don't check this account regularly)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top