<?php $num = 3; echo"<button type='button' id='like_button' class='button' name='like_button' value='$num'>Like</button>"; ?>
(you shouldn't use a submit button for this purpose really..)
$('#like_button').click(function()
{
// here i want to get the value of $num
// $(this).val();
});
This post has been edited by andrewsw: 23 December 2012 - 03:24 AM

New Topic/Question
Reply



MultiQuote




|