Home >Web Front-end >JS Tutorial >Jquery dynamically changes the src address of the image IMG example_jquery

Jquery dynamically changes the src address of the image IMG example_jquery

WBOY
WBOYOriginal
2016-05-16 17:31:221130browse
Copy code The code is as follows:


< a onfocus=this.blur() href="javascript:void(0)" class="l-button" style="width:80px" onclick='log_1()'>
No picture!



Copy code The code is as follows:

$("#img_a").attr("src", "login_image/b_2.jpg");

// ========= Another important point is Using the following properties, you can remove the virtual frame after clicking on the image.
Copy code The code is as follows:

onfocus=this.blur()
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn