Jump to content

jquery help


e111982

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.