I have the following jquery code.
<div id="result"> <script>
$('#result').load('http://www.mystie.com/speicificpage #uniqueid li:lt(3)');</script> </div>
So far it works great. Is there a way to do this for the content withing h2 tags? meaning instead of matching to an ID can you match to what’s inside an h2?
<div id="result"> <script>
$('#result').load('http://www.mystie.com/speicificpage <h2> unique title</h2> li:lt(3)');</script> </div>
I have a page that is a series of ul and each have a title. I have separate pages that need to EACH call in a specific ul (as they are updated.) can I just specify or match the h2 title?
You can use any jQuery selector after the URL. For example, to load the contents of the
h2with textunique1, you can use: