How should i change image src using jquery
<img src="http://chandreshrana.blogspot.com/chand.png" title="chandresh" alt="chandresh" id="bigImg" />
<script type="text/javascript">
jQuery("#button").click(function(){
var NewImageUrl = "http://chandreshrana.blogspot.com/chandresh.png"
jQuery("#bigImg").attr('src', 'NewImageUrl');
});
</script>
1 comment:
Excellent pieces. Keep posting such kind of info on your site.
Im really impressed by your blog.
Hello there, You have performed a great job. I'll definitely
digg it and individually suggest to my friends. I am confident they'll be benefited from this website.
Stop by my site Rise Of Darness iOS Cheats
Post a Comment