Ryura's code should work just fine, could you put up a test page
showing the error?

Something like this looks a bit better (to me) and should work just as
well:

$('<li />')
   .append( $('<input type="text" />').val(item.a) )
   .hide().appendTo('myList')
   .slideDown()

- ricardo


On Dec 8, 1:15 am, nathanziarek <[EMAIL PROTECTED]> wrote:
> Thanks Ryura --
>
> That's exactly what I thought I could do, but could not get it to
> work. That's when I came up with my much less elegant solution that
> works OK, but I have the feeling has some serious shortcomings.
>
> The error I get with your solution is "Value undefined (result of
> expression "<li><input type='text' value=" + item.a + " /></li>".hide)
> is not object." I tried removing everything but the <li></li> (and
> then removing the closing </li> just in case) to verifying that it
> wasn't a problem generating the DOM elements, but that didn't change
> the nature of the error.
>
> Thanks!
> Nate

Reply via email to