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(); });
+ AnswerB
+ Report