By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,714 Members | 1,195 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,714 IT Pros & Developers. It's quick & easy.

form fields on IE for Mac

P: n/a
Hi,

I have a little problem with the internet explorer 5.2 for mac. I have a
checkbox field which name is an array, but then I can't read the field on IE
for MAC. Other browsers don't seem to have problems with it, if I set the
id's of the field the same as the name is. Anybody has a solution?

Code:

<script>

function chklength(field) {

alert(field.length);

}

</script>

<form name="test">

<input type="checkbox" name="testfield[]" id="testfield" value=1> <input
type="checkbox" name="testfield[]" id="testfield" value=2> <input
type="button" onclick="chklength(this.form.testfield)"

</form>

Thanks in advance,

Solitaire
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
solitaire wrote:
Hi,

I have a little problem with the internet explorer 5.2 for mac. I have a
checkbox field which name is an array, but then I can't read the field on IE
for MAC. Other browsers don't seem to have problems with it, if I set the
id's of the field the same as the name is. Anybody has a solution?

Code:

<script>

function chklength(field) {

alert(field.length);
field.name.length, perhaps?
Mick
}

</script>

<form name="test">

<input type="checkbox" name="testfield[]" id="testfield" value=1> <input
type="checkbox" name="testfield[]" id="testfield" value=2> <input
type="button" onclick="chklength(this.form.testfield)"

</form>

Thanks in advance,

Solitaire

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.