jQuery(document).ready(function () {
$("div").bind('click', $.proxy(function (event) {
var id = $(event.target).attr('id');
var go = jQuery.isNumeric(id);
if (go) {
$.post("favswrite.php", {
id: id
});
alert('Formül '+id+' favorilerinize eklendi !');
}
}, this));
});
This code is post data 3 times. Where is wrong and loop it ? I want post data 1 times.