jquery load multiple attributes in to an iframe or div

1
2
$( ".clicky-class-name" ).click(function() {
var iframeStyle = '<?php the_field('style_id');?>';
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
jQuery on click method to change an iframe's url source concatenated on data from a php field, and color acquired from a class's data attribute.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.