This is the next step forward to this question
I have the script below
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
function doSomething() {
$.get("somepage.php");
return false;
}
</script>
<a href="#" onclick="doSomething();">Click Me!</a>
My question is, if I want to send a value to somepage.php page once someone click on the link, how do I do it.
My new a
link look like this
<a href="#" onclick="doSomething(<?php echo $id; ?>);">Click Me!</a>