You can remove any href that contains specific text inside the link. If you want to remove the link to any page that contains “DispForm” you can do it like this:
$('a[href*="DispForm"]').removeAttr("href");
‘*=’ means ‘Contains’, but you can use anything you need:
*= Contains = Equal != Not equal ^= Starts With $= Ends With
No Responses