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>
source https://stackoverflow.com/questions/68154327/maximum-value-in-the-input-field-of-form-not-working
Comments
Post a Comment