jQuery Loading external content in Div, link problem -


I have loaded content from an external site into jQuery in a div, but when I have a link in the loaded content Clicking opens it as your page, is there a way to restrict the link to open the page, it is still contained in the device?

The way I think is to set the "href" entry of all the links to "#" The only way to find out the code below.

  $ ("# div"). ("A"). Attr ("href", "#")   

Hope this is useful!

Comments

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

Mysql Local server hardware -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -