In the below code I am able to get the alert message to display correctly displaying the message and the number "3". Does anyone know how to use that passes variable/number to declare a form element named "priority" to be passed to the form before submitting?
My goal is to use $_POST["priority"]
and generate the number 1, 2, or three based on which link/button is clicked.
<script language="JavaScript">
function submitForm(priority)
{
alert("Changing to Priority " + priority);
document.frm.submit();
}
</script>
<a href="javascript: submitForm('3');" class="ddm"><span class="label">Low</span></a>
<a href="javascript: submitForm('2');" class="ddm"><span class="label">Medium</span></a>
<a href="javascript: submitForm('1');" class="ddm"><span class="label">High</span></a>