tag:blogger.com,1999:blog-8980734269859237005.post2837374755561831386..comments2024-01-30T01:03:21.768-08:00Comments on DevCurry: Create a Hyperlink of an Image using jQuerySuprotim Agarwalhttp://www.blogger.com/profile/08349831623922214390noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8980734269859237005.post-82248873061179651772011-09-15T08:41:21.784-07:002011-09-15T08:41:21.784-07:00Thank you Anonymous, this method worked perfectly ...Thank you Anonymous, this method worked perfectly for me!Orange Crushnoreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-62354520460750340082010-06-22T11:33:08.038-07:002010-06-22T11:33:08.038-07:00$("img").click(function(){ window.locati...$("img").click(function(){ window.location.href = $(this).attr("src"); });<br /><br /><br />This does the same, and more importantly, it doesnt alter the html structure of your page, which could easily break your styling with things like floating images or image blocks.Anonymousnoreply@blogger.com