Welcome Guest, Not a member yet? Register   Sign In
jquery drag and drop
#6

[eluser]Nick Husher[/eluser]
I think what's happening is that the jQuery script isn't finding the selected node so the function isn't being executed. It's not finding the node because it doesn't exist in the DOM tree when the script executes (I assume it's above the button in the source code). What you need to do is add a listener for when the DOM tree has finished loading, which in jQuery you can do by "$(document).ready()"

Code:
$(document).ready(function() {
   // copypaste my previous code
});


Messages In This Thread
jquery drag and drop - by El Forum - 10-24-2008, 01:33 PM
jquery drag and drop - by El Forum - 10-24-2008, 04:57 PM
jquery drag and drop - by El Forum - 11-16-2008, 11:35 AM
jquery drag and drop - by El Forum - 11-16-2008, 05:23 PM
jquery drag and drop - by El Forum - 11-21-2008, 09:06 AM
jquery drag and drop - by El Forum - 11-21-2008, 09:12 AM
jquery drag and drop - by El Forum - 11-21-2008, 09:48 AM
jquery drag and drop - by El Forum - 11-21-2008, 09:55 AM
jquery drag and drop - by El Forum - 11-21-2008, 10:16 AM
jquery drag and drop - by El Forum - 07-07-2009, 07:38 AM
jquery drag and drop - by El Forum - 07-09-2009, 01:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB