I NEED TO MODIFY THIS CODE _blank
<a开发者_如何学运维 class='read-more' href='{$product['uds-link']}'>{$product['uds-link-label']} <span class='read-more-right'></span></a>
HOW I CAN DO THIS
very thanks
First off, please don't use caps. Second, begging doesn't really push people to answer your question. Thirdly, you're very vague.
Regardless, I assume you just want to do target='_blank'
<a class='read-more' href='{$product['uds-link']}' target='_blank'>{$product['uds-link-label']} <span class='read-more-right'></span></a>
Just change this:
<a class='read-more' href='{$product['uds-link']}'>{$product['uds-link-label']} <span class='read-more-right'></span></a>
to this:
<a class='read-more' href='{$product['uds-link']}' target='_blank'>{$product['uds-link-label']} <span class='read-more-right'></span></a>
If you need to do it programatically, you'll need to use javascript. JQuery has a nice method called .attr(name, value) which you can use like this:
$(.read-more).attr('target', '_blank');
Find out more about the method at api.jquery.com/attr
精彩评论