I am trying to use an Ajax search\suggest box. I use jQuery to handle the textbox losing focus. However, when I click on a link in the suggestion list jQuery fires the blur event and the link is not followed. Here is the jQuery code:
$(document).ready(function() {
$('#lstxt').click(function() {
this.value = '';
});
$('#lstxt').blur(function() {
this.value = 'Database Search';
document.getElementById('ls').innerHTML='';
document.getElementById('ls').style.border='0px';
});
});
How do I get it to not fire .blur if a link is being clicked inside the suggestion list (id="ls_table")?