0
I have a form where the credit card data is filled out and displayed on the card!
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
<?= $form->field($formPagamento, 'name')->textInput(); ?>
</div>
</div>
//Name Input
$(".inputname").keyup(function(){
$(".fullname").text($(this).val());
if($(".inputname").val().length === 0){
$(".fullname").text("Nome completo");
}
return event.charCode;
}).focus(function(){
$(".fullname").css("color", "white");
});
Then the value shown in the input I want to appear in the card image
– dev2 pecaagora
Take a look here, would it be like this? https://jsfiddle.net/sngbrdtk/
– Guilherme Lagemann
that’s right, so that’s the following hi form ja and auto generated by Yii, that part <?= $form->field($formPagamento, 'name')->textInput(); ? > dai as put to ?
– dev2 pecaagora
Well, it generates an HTML with input from that command, right? You need to get the value of that input from jQuery, right? Then you can take this value by the input name, in case you are passing 'name', then it would be $("input[name='name']"). val()?
– Guilherme Lagemann