I have a div which has an a inside it. I want to click on the div and follow the same url as the a. This is the HTML:
Not exactly a direct answer to you question but I have two suggestions
You may just want to try to see if jQuery will handle it for you
$(this).children('a').first().click()
Edit: This did not solve the problem
Also you may just want to make the whole in to an tag with style="display: block; text-decoration: none". You can use font colors and underlines to make the text inside look however you want. Also, this solution does not require JavaScript. and it also makes the whole div show as focused instead of just the a or nothing at all. 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中...
in to an tag with style="display: block; text-decoration: none". You can use font colors and underlines to make the text inside look however you want. Also, this solution does not require JavaScript. and it also makes the whole div show as focused instead of just the a or nothing at all. 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中...
tag with style="display: block; text-decoration: none". You can use font colors and underlines to make the text inside look however you want. Also, this solution does not require JavaScript. and it also makes the whole div show as focused instead of just the a or nothing at all.
style="display: block; text-decoration: none"