Are you sure appending is what you want to do?  Appending to an
<input> does not really make sense to me.  Maybe using the after() or
before() would make more sense.

DIV before append:
<div id="some_id"></div>
DIV after append:
<div id="some_id"><input type="hidden" name="name"  value="some
value" /></div>

INPUT before append:
<input name="name" id="some_id" type="text" size="35" />
INPUT after append:
<input name="name" id="some_id" type="text" size="35"><input
type="hidden" name="name"  value="some value" /></input>



On Apr 16, 9:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I just noticed that I can append OK in IE6 to a <div></div> block, but
> not to a form element. In other words, appending to:
>
> <input name="name" id="some_id" type="text" size="35"> <- does not
> work
>
> Appending to:
>
> <div id="some_id"></div> <-  works
>
> On Apr 16, 8:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > I am appending a hidden form field similar to this:
>
> > $("#some_id").append("<input type=\"hidden\" name=\"name\"  value=
> > \"some value\">");
>
> > Works fine in all Mac browsers but testing in IE6 on Windows it
> > appears to not to get added to the DOM tree. The hidded value is not
> > available when the form is submitted.
>
> > Also tried $().html()
>
> > IE6 reports "Unexpected call to method or property access"

Reply via email to