How to insert into database on every editInplace in JQuery..
<script type="text/javascript">
var increment = 0;
$(document).ready(function(){
$(".menu a").click(function () {
increment++;
$("<div> Label </div>").appendTo(".menu li").addClass("div" + increment);
$(".div" + increment).show(function () {
$(".div" + increment).editInPlace({
url: "./server",
show_buttons: true
});//editinplace
});//show
});//click
});
</script>
The best way to insert into a database with Jquery is to use Jquery to call on a page which has some other code on it, that can easily insert into a database.
The most common way to do this is to use PHP and Jquery’s post/get/ajax features to call on a page that has the PHP code used to insert into the database.