Skip to content

Instantly share code, notes, and snippets.

@shreyasborse
Last active May 20, 2017 05:56
Show Gist options
  • Save shreyasborse/7c3c00c49dee56c78cf59919757494b3 to your computer and use it in GitHub Desktop.
Save shreyasborse/7c3c00c49dee56c78cf59919757494b3 to your computer and use it in GitHub Desktop.
shanu22
<?php
for ($j=1;$j<10 ;$j++) {
for ($i=1; $i <10 ; $i++) {
$Seat= $j.'R'.$i;
echo "<button onclick='selectSeat(this)' id='".$Seat."'>".$Seat."</button>";
}
echo "<br>";
}
?>
<script type="text/javascript">
function selectSeat (obj)
{
alert ("Button pressed "+obj.id);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment