Thanks Richard, that gave me the clue. What I have now is: $(this).find('input.changethis').val('ABC');
- and it works perfectly. Thanks again! On Feb 10, 3:49 am, "Richard D. Worth" <rdwo...@gmail.com> wrote: > 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.