Its because he's referencing the object through the options array,
Proto never gets to sink its method into the object because of this
traversal, while the other browsers support native extensions it works
fine.
$($("Birth_Day").options[0]).remove();
On Oct 20, 8:55 am, delishus <[EMAIL PROTEC
Cristisor
The quick dirty way to deal with this is to have 2 different select
list for your days in seperate divs, one with 31 days the other with
30 days. Then with an onchange event on the month div, either show or
hide the relevant select list. You can either have the lists hardcoded
into the
Hi,
> I tried to remove it and add it later, but it won't work in IE 6...
You can definitely add and remove select box options in IE6. There's
something about the way you're doing it that's browser-sensitive.
If you search...
http://www.google.co.uk/search?q=javascript+adding+options+select
I tried to remove it and add it later, but it won't work in IE 6, I
get the error: "Object doesn't support this property or method". I
know what this means, but IE 6 doesn't support anything :( And
everything works just fine on other browsers :)
On Oct 19, 11:45 pm, "T.J. Crowder" <[EMAIL PROTECT
> What you are saying works in Firefox, but it doesn't work in IE 6.
I think what he's saying is if you don't want the option to appear *at
all*, you have to remove it from the options list when you don't want
it and add it when you do; you can't "hide" it:
> > As far as hiding goes, I don't thi
I'm sorry, I did a mistake in the code. It should be like this:
$('Birthdate_Day').options[30].disabled = 1; only one "="
What you are saying works in Firefox, but it doesn't work in IE 6.
On Oct 19, 6:51 pm, kangax <[EMAIL PROTECTED]> wrote:
> On Oct 19, 6:51 am, Cristisor <[EMAIL PROTECTED]> w
On Oct 19, 6:51 am, Cristisor <[EMAIL PROTECTED]> wrote:
> Hi. I have a select field that allows me to select a birthday. I need
> to decide how many days the field has according to the selected month.
> In Firefox I can hide days 30 and 31 using
> $('Birthdate_Day').options[30].hide(); or $
> ('B