I currently have a drag/drop list my problem being I’m trying to detect when a div is dropped via Jquery using mouseup.
The problem being the reason I need to do this is so I can update my lists (in MYSQL) – I plan on doing this using a Jquery Ajax post.
My problem is I’ve set up the code and I don’t know where I am going wrong – in my code you will see an alert function – I used this to show if the div was updating.
So far I am receiving no alert..
Here is the jquery at the moment:
$(document).ready(){
$(.mouseup).mouseup(function(){
var divparent = $(this).parent().attr("id");
alert(divparent);
});
}
Any help would be appreciated.
Thank you in advance!
I put some arrows where things need to change.