English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm trying to remove this required 'terms&conditions' checkbox from a form and pass it as accepted by using a hidden field:




Commenting out the field and inserting the line below works in firefox, but I still get an alert in IE that says I haven't checked the box:



What code can I use that works in both browsers?

Thanks much!

Les

2007-05-04 11:17:14 · 3 answers · asked by Les M 1 in Computers & Internet Programming & Design

3 answers

Okay, hidden fields are normally text fields and are intended to contain info you don't want the user to input. For example, here's one sample pulled from EchoEcho's tutorial site:









So, that's probably issue one. Your trying to use checkboxes when hidden types are normally text. See if you can re-work your code to utilize a text box. If anything, simply have it contain either 'true' or 'false' depending on other input.

Hope this helps!

2007-05-04 11:28:09 · answer #1 · answered by designworksinternet 2 · 0 0

All your example garners is a problem, with two input elements having the same id. Just place the checked="checked" in the original (the first one you listed...) input element, and the "accepted" value will be checked unless the page viewer specifies otherwise...

2007-05-04 11:26:25 · answer #2 · answered by fjpoblam 7 · 0 0

anskey.fee[] would not make any experience. the purely risk is anskey.fee There are a good number of stuffs which will paintings on firefox through way firefox works. IE is purely too tender. asnkey.fee[regardless of] represents an array.

2016-11-25 02:44:25 · answer #3 · answered by ? 4 · 0 0

fedest.com, questions and answers