I would like to change text on form submit button, which is now "submit" into something else e.g. "working". I'm using ajax for submitting the form. Code below is not working, text stays the same.
Blade:
{!! Form::submit(( trans('form.submit')), ['class' => 'btn btn-success', 'id'=>'text-change']) !!}
ajax:
success: function(data) {
$('#text-change').val("Generating...");
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire