I am am trying to append an element to a <div> of a page, but it is not working.
Page1 (index.php)
<a href=" another.php " id="p1id" type="button">Go to page 2</a>
Page2 (another.php)
<div id=p2id></a>
JavaScript (jqtest.js)
$.("#p1id").click(function(){
$.("#p1id").append()
});
.between$and your selector, for starters.<div>tag with</a>. That's invalid. Also, just calling theappendmethod with no argument is meaningless.