mostafatalebi Posted April 1, 2013 Share Posted April 1, 2013 hello everybody I have problem with following script: (I want to add text when I click on the link, but it does not work. When I do with append() method, however it works <script type='text/javascript'> var fontSize = 15; $(document).ready(function(e) { $("#links_holder h21 a").click(function () { $(this).parent().parent().text("Added!"); }); }); </script> </head> <body> <div class="nothing" id="links_holder"> <h1><a href="#">Click Here to Add Content!</a></h1> <table id="exampleTable"> <tr><th>Name</th><th>Occupation</th></tr> </table> </div> <div style="margin-top: 400px;" id="far_div"> </div> </body> Quote Link to comment https://forums.phpfreaks.com/topic/276379-problem-with-text-method/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.