Click "Start" in Windows. Click "Notepad" to open the Notepad text editor.
Click the "Open," "File" and select the Web page file in which you want to change the "SRC" image attribute by using jQuery.
Add the following code at the beginning of your Web page to change the "first.jpg" file to the "second.jpg" file in the "SRC" attribute by clicking on the image:
<img id="my_image" src="first.jpg"/>
Click the "File," and then click "Save" to apply the change to your Web page.
- Photo Credit Chad Baker/Photodisc/Getty Images
How to Change DIV Height in jQuery
Insert the following code below the closing tag of the DIV container whose height you wish to change. <script> $("#box").one( "click", function...
How to Change a Mouse Cursor With JQuery
If you are performing a task in jQuery that will require the user to wait for a second or more, you might...
How to Upload Images Using Ajax
Using AJAX to upload images to a website makes the process user-friendly, as the upload can occur without the browser's having to...