Powered by Blogger.

How to get image src from content using jQuery


How to get image src from content using jQuery

How to get image src from content using jquery and  set them in our image tag using id

$(document).ready(function(){

image = $(".entry-content p img").attr("src");

$("#myimageid").attr("src", image);

});

No comments