Help with .click(function () and HREFs
I am trying to have a .click on any <a> tag inside my <div id="test">. If they are inside a <li>, they do not work. Code...
$("#test a").click(function () {....
// Function to open in iFrame
new_window($(this).parent().attr("id"), $(this).attr("href"), null);
If I use without <ul><li> it works...
<div id="test">
<a href="index.cfm?action=statusTracking.statTrkLSDconvert" onclick="return false;">test link</a>
</div>
Adding UL and LI does not work. It hits the function, but then just refreshes the page to the href...
<div id="testBody">
<ul><li><a href="index.cfm?action=statusTracking.statTrkLSDconvert" onclick="return false;">test link</a></li></ul>
</div>
Any suggestions? Thanks!