random number text in html
<button class="button" onclick="RandomID();" style="font-family: sans-serif;">RUN</button>
<input class="input" type="text" id="id" name="id" size="3" readonly />function RandomID() {
var value;
var rnd = Math.floor(Math.random() * 11);
if (rnd === 7)
value = "Wassup";
else if (rnd <= 5)
value = "Hello";
else
value = rnd;
document.getElementById('id').value = value;
}
Also in HTML:
- ionic input
- more than one class in div
- get all html element data using angular
- html xpath name
- html body tag
- HTML Character Entities
- bootstrap display inline block
- header html
- ionic segment
- prevent ie caching data on cshtml pages
- how to release cache of videos html5
- text to html
- html ul types
- ASP.NET MVC Two file upload, different destinations
- android ellipsize attribute
- html list bullets not centered
- html checkboxfor is not visible
- html select placeholder
- responsive youtube embed html
- html javascript redirect
- hide image on click
- html text tag
- add manifist to html
- import ionic html