IE doesn't allow you to change the type of a form element once it's created.
Best solution is to create a new element and add in the value and name, then delete the old element. Karl Rudd On Wed, Feb 4, 2009 at 9:17 AM, Sam Hastings <sam.hasti...@gmail.com> wrote: > > Hi everyone, > > I'm trying to use the following code to change <input type="text" /> > to <input type="hidden" /> where the element has the classname > "navtitle". > > $(".navtitle").each(function() { > this.type = "hidden"; > }); > > This code works fine in Firefox but has no effect at all in IE. Can > anyone help me please? > > Sam Hastings >