I have to control hidden Inputs.
I have images from 6-30. Each of them gives a value to a hidden input when clicked. I just want to control the submit button.
To click on the submit button user has to select one of the images and has to set the specified hidden input value.
I’m giving the code below which is not working ? . Any help is appreciated.
<Html>
<head></head>
<body>
<script language=”JavaScript”>
function check() {
for (i=6; i<30; i++)
//document.write(“Sayı = ” + i + “<br>”);
if (document.forms[‘frm’].std[i].value != ”){
alert(“Sayı = ” + i + “<br>”);
return false;
}
return true;
}
</script>
<form name=”frm” action=”?x=14″ method=”post”>
<%
for i = 6 to 30
%>
<input type=”hidden” name=”std<%=i%>” value=””>
<%
next
%>
<input type=”button” value=”Submit>>” onclick=”return kontrol();”>
</form>
</body>