HTML中的<a>標籤不能觸發jQuery的click事件
If you have a link as this
<a id="link1" href="#">
And you have a script as blow, but does not handle the click event
$(document).ready(function () {
$('#link1').click(function () {
// do something
});
}
Then change "#" to "javascript:void(0);", it's going to work normally
<a id="link1" href="javascript:void(0);">