[jQuery] Sortable: change input field value on receive
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.