I have the form which have one input field called 'stationeryqtyissued'.I execute a sql query which gives me the Number of quantity requested( say X) and i want the input number in the given field should not be greater than this value (X). My sql query is correct. I have set the attribute max property equal to the result of sql query.Maximum property not working .any correction in this code or any other solution using js is highly appreciated
<td><input type="number" name="stationeryqtyissued[]" min="1" max="<?php echo htmlentities($result->stationeryqtyrqst);?> " required > </td>
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment