Jump to content
php.lv forumi

Pop-up ar checkbox


Guna

Recommended Posts

<script language="JavaScript" type="text/javascript">
function bb(bla)
{
var kautkas=document.getElementById(bla).checked;
if (kautkas==true)
{
alert('Iekjekseeju');
}
else
{
alert ('izkjekseeju aaraa');
}
}
</script>

<form method="POST" action="#">
 <input type="checkbox" ID="poga_id" name="poga" value="ON" onclick="bb('poga_id')"><br>
 <input type="submit" value="Submit" name="B1">
</form>

ja tiirs JS tad shadi

Edited by Grey_Wolf
Link to comment
Share on other sites

×
×
  • Create New...