Let's have a select tag of months of a year
<label name="month">Select Month</label>
<select class="form-control">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select>
How can I set the current month number dynamically ? e.g. If it is May then '5' will be selected automatically. However user can also select a month manually with the help of drop down option.I want to use it in my laravel5.0 application.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire