Hello,
I have a url and I want to display only the html links or URLs using jQuery.
Thanks Jean
Hello,
I have a url and I want to display only the html links or URLs using jQuery.
Thanks Jean
do the pattern match for url , whether the url is ending .html extenstion .
preg_match ( '/.html$/',$url ,$val );
Taking a wild, wild stab in the dark here, hopefully hitting something that comes close to what you're really asking. This selector will get all links on the page that end with '.html':
$('a[href$=.html]').each(function () {
alert(this);
// do whatever you want to do with 'this'
}
http://api.jquery.com/category/selectors/attribute-selectors/