I am trying to get the month element show up on the following html, and it's showing me wrong number, I need to display the name of the month instead of number.
This is my HTML
<div class="card-expiration-date">
<label>Expires</label>
<div></div>
</div>
This is my jQuery
$('#card-expiration-month, #card-expiration-year').change(function(){
m = $('#card-expiration-month option').index($('#card-expiration-month option:selected'));
m = (m < 10) ? '0' + m : m;
y = $('#card-expiration-year').val().substr(2,2);
$('.card-expiration-date div').html(m + '/' + y);
})
This is my code in Laravel 5.2
<fieldset class="fieldset-expiration">
<label for="card-expiration-month">Expiration date</label>
</fieldset>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire