Question:Which of the following is the correct way to change the image source during click event of a button in jQuery? 

A $("#button").click(function(){ $(“img”).src(); }); 

B $("#button").click(function(){$(“img”).attr(); }); 

C $("#button").submit(function(){$(“img”).text();}); 

D $("#button").submit(function(){$(“img”).html(); }); 

+ Answer
+ Report
Total Preview: 622

Copyright © 2024. Powered by Intellect Software Ltd