Wednesday 15 September 2010

jquery - Can't use selectors inside prettyphoto inline "popup" -



jquery - Can't use selectors inside prettyphoto inline "popup" -

this should work , not. i'm mad thing, please explain why not working. can't select within prettyphoto inline. utilize else, still driving me crazy not knowing.

thank you.

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'> <head> <meta content='text/html; charset=utf-8' http-equiv='content-type' /> <title>test</title> <script src="js/jquery-1.11.1.min.js" type="text/javascript"></script> <script src="js/jquery.prettyphoto.js" type="text/javascript"></script> <link rel="stylesheet" href="css/prettyphoto.css" type="text/css"/> <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $("a[rel^='prettyphoto']").prettyphoto({ social_tools:false, overlay_gallery:false, show_title:false}); $('#button').on('click', function() { alert('great'); }); }); </script> </head> <body> <a href="#inline-1" rel="prettyphoto" >click me</a> <div id="inline-1" style="display:none;"> <p>i can't target within here why??</p> <a href="#" id="button">button</a> </div> </body> </html>

jquery prettyphoto

No comments:

Post a Comment