is there a way to display increment value display in 5 digit 0 when display on textbox, i tried puting 00000 on my javascript, inside modal i have textbox that display increment value, when i open my modal it display 1 not 00001, hope you can help me. advance thanks.
here is my sample code:
<input type="text" class="form-control" name="id" id="id" readonly style="width:45%; margin-top:30px;" value=" <?php
include_once('connection.php');
$sql="select max(id)
from test2";
$result = mysqli_query($conn,$sql);
$row = mysqli_fetch_row($result);
echo $row["0"];
?> ">
and this is my javascript
<script>
function incrementValue()
{
var value = parseInt(document.getElementById('id').value, 10);
value = isNaN(value) ? 00000 : value;
value++;
document.getElementById('id').value = value;
}
</script>