4
I forgot how to make links with jQuery that run when clicking on a div. The link I needed was with target Blank.
I found it from here but I didn’t understand the code and I couldn’t use it.
jquery('a[href="http://site.com"]').attr('target', '_blank');
This code picks up all links (tag
<a href...>
) and puts target Blank. It doesn’t look like what you want. What do you want to happen when you click the div?– bfavaretto
When I click on the car div I want you to run a certain link on target Blank
– Josimara