What is wrong in the jquery code?
Posted
by phpBOY
on Stack Overflow
See other posts from Stack Overflow
or by phpBOY
Published on 2010-04-25T07:20:07Z
Indexed on
2010/04/25
7:23 UTC
Read the original article
Hit count: 216
jQuery
|web-development
I have been struggling in fixing this code, wonder what is wrong at all...
var tips = "<p class="adobe-reader-download">Most computers will open PDF documents automatically, but you may need to download <a title='Link to Adobe website-opens in a new window'";
tips +=" href='http://www.adobe.com/products/acrobat/readstep2.html' target='_blank'>Adobe Reader</a>.</p>";
if($("div#maincontent a[href*='.pdf']").length>0){
$("div#maincontent").children(":last-child").after(tip);
© Stack Overflow or respective owner