Hello i want to display the value in alert . I passed the php value as a parameter in jquery and when i display that value in alert it shows empty Code is here
<button type="button" onclick="topSharedPosts('<?php echo $postID; ?>')" class="btn btn-success" value="<?php echo $postID; ?>"> Facebook </button>
Jquery Function
function topSharedPosts(id) {
alert(id);
}