I have a php code which generates pagination links.
I have ol > li list..
li has titles like Page 1, page 2, next page, previous page, last page, first page
I want only the links -> Previous Page and Next Page .. So I can use jQuery and search within li
Using this, I get all the links. [Used binded click to know check if the ]
jQuery(document).ready(function(){
jQuery('#custom_pagination li').find('li').attr('title','Next Page').click(function(){alert("clicked");})
});
I only want 2 of them with searching the title attr. HOw do i do it.?
tx