is it possible to create a link to a div? this is my line of code:
output +='<h2><a href=\"link-to-a-website" >' + val.product + '</h2>';
I have created a rich internet application and I need this to link to a div within my website
' + val.product + ''; I have creat" /> ' + val.product + ''; I have creat" /> ' + val.product + ''; I have creat"/>
is it possible to create a link to a div? this is my line of code:
output +='<h2><a href=\"link-to-a-website" >' + val.product + '</h2>';
I have created a rich internet application and I need this to link to a div within my website
Yes it is possible but you need to use
IDinstead ofCLASS.Example:
jsFiddle: https://jsfiddle.net/AndrewL32/45o6u4Le/2/
The target div could be on a different page/site too but you will have to specify the path correctly.