View
@model ForPreson.Models.Game_Calculations
<script src="~/js/jquery.min.js" type="text/javascript"></script>
@using (Html.BeginForm())
{
<div class="editor-field">
@for(int i=0;i<1;i++)
{
String playerFifty = "player1" +"Fifty";
String playerHundred = "player1" + "Hundred";
String playerTwoHundred = "player1" + "TwoHundred";
<br />
<input id="B1" type="submit" value="50" name="@playerFifty" />
<input type="submit" value="100" name="@playerHundred"/>
<input type="submit" value="200" name="@playerTwoHundred"/>
}
</div>
}
Calling a button with javascript is simple using document.getbyID but how do u do it with no id
The above code subtracts values from the database chip tally as the buttons are pressed but when I use an onclick event the db functionality crashes help please