Is this jQuery code right?
function like(){
$('#likeo').html('<div style = "align:center"><img src =
"images/loader.gif"></div></br>').show();
var pid = <?php echo $post; ?>;
$.post('include/like.php',{pids:pid} , function(data){
$('#likeo').html(data).show();
})
}
Is this jquery code right??. I tried everything and failed to get it
working. this function gets executed by this code :
<input type = 'button' value = 'Like' name = 'like' id = 'inputl' class =
'buttonl' style = 'width:46.4%;margin-top:10px;' onclick =
'javascript:like(<?php echo $post; ?>;);'>
No comments:
Post a Comment