I need to show item id in a href tag ,but it must not navigate into other page… one way to prevent navigation is using jvascriptvoid(0) but can i append it to id… If so how??
<a href="id='.$portfolio_id.' "><img height="57" width="57" src="images/portfolio_uploads/orig_'.$portfolio_item['image'].'"></a>
Add
onclick="return false;"to your anchor tag. This will prevent the link from being navigated to.However, I don’t understand the point of this, and this isn’t want the anchor tag is designed for. Perhaps if you supply more information we can find a better solution.