Skip to content
Advertisement

jQuery append input value to iframe data-src

How can I append an input value to data-src iframe in jQuery.

JavaScript

I am doing like the above snippet but the console.log returns only the initial value without the input value that should be appended.

Does anyone know a way to do it?

Advertisement

Answer

You did not update data-src. You updated src attribute.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement