I am working on creating a dynamic button using jQuery and the Redsys API. I am trying to change the default value of this button, and here is what I have attempted:
$("#btn_submit").val('Payment Gateway TPV - '+"<img src='{{ asset('media/santander.png') }}' name='logo' /> ");
The result is:
https://i.sstatic.net/ZqBhu.png
I want to display this image in my button.
Can anyone help me with this?
Thank you