Try this:

$(this).children().children('input.changethis').val('ABC');

- Richard

On Mon, Feb 9, 2009 at 5:30 PM, robertaugustin <nub...@nubloo.com> wrote:

>
> Hi,
> I have this:
>
> $('.sort').sortable({
>   receive: function(){
>      $(this).children().children('input.changethis').value = 'ABC';
>   }
> });
>
> for this markup:
> <ul class="sort">
>   <li>
>      <input class="changethis" name="thename" value="XYZ" />
>   </li>
> </ul>
>
> ...and I can't get it to work. I need to change the value of the input
> field as soon as it is dropped in its new location in the list. What
> am I doing wrong?
>
> Thanks in advance.
>

Reply via email to