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> Link to comment https://forums.phpfreaks.com/topic/187385-jquery-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.