e111982 Posted January 6, 2010 Share Posted January 6, 2010 Hi. Here is a jquery dynamic drop down script. It updates the order in updateDB.php whenever the orders are changed. However I want to put a button and and when it is clicked I want updateDB.php to run. How can I do that? Thnaks. I am newbie in jquery. <script type="text/javascript"> $(document).ready(function(){ $(function() { $("#contentLeft ul").sortable({ opacity: 0.6, cursor: 'move', update: function() { var order = $(this).sortable("serialize") + '&action=updateRecordsListings'; $.post("updateDB.php", order, function(theResponse){ $("#contentRight").html(theResponse); }); } }); }); }); </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.