I have this ASP/JavaScript code.
How do i pass the value of 'adult' to the JavaScript which is client-side and ABOVE this ASP?
This is what i have so far.....
Code:
<script language="javascript>
function confirmedok()
{
adult = "<%=adult%>"
alert("adult = " + adult);
... more code......
}
</script>
<%
'... if there are NO CHILDREN AND NO INFANTS
if noc = 0 and noi = 0 then
response.write "ADULTS"
adult="yes"
response.write "adult = " & adult & "<br>"
%>
<img src="images/confirm.gif" onclick="javascript: confirmedok();"
onMouseOver='style.cursor="hand"' value="Confirm">
<% end if %>
Not sure if this is in the correct forum
:-(