Vote count:
0
So what I am given is this
<button id="restart">Restart</button>
<p id="score">Score: _ (_ dice with _ dots each)</p>
<p id="rolls">_ rolls left</p>
<div id="dice"></div>
and the goal is to set and update the values that are represented initially by the _ char, which will get replaced by the actual value. Creating a game akin to Yatzee, where the score is the sum of the dice with the most occurrance and highest value(ie, score is 12 if there are 2 dice that have 6 and no other most occurred dice value came up)
Using jquery, how would I set these values of the
element? I figured using
`$("#rolls").val(//some number);
However, that doesn't work. Any ideas?
asked 58 secs ago
How to set the value of a
element using Jquery and how to use a button to reset all objects of a certain object?
Aucun commentaire:
Enregistrer un commentaire