I have a simple case. I want two things.
- Put label next to the input.
- Some sort of validation, only digit number for the text box.
The corresponding link is here.
Now the input is below the label.
My code:
<div id="generatePinsDialog" title="Generate New PINs">
<label style="display: inline-block; width: 400px;">
How many?</label>
<input id="newInmateCount" type="text" size="25" value="Enter the number!" />
<br />
<select>
<option value="sameAsID">Same as ID</option>
<option value="appendID">AppendID</option>
</select>
First, remove the “inline-block” from your label and add the
forattribute like so:As for the input, do this for numeric only:
See your jsFiddle Updated