Moving from jQuery 1.2.6 to jQuery 1.9.0 causing errors
Hi when run jQuery 1.9.0 on my site rather than 1.2.6 I get an error caused by the blur on a form, if I remove the code below I get no errors but the blur on the form is obviously gone, any idea what is causing the problem?
Code:
$(function() {
http_val = '';
if ($('input#http').length > 0)
http_val = $('input#http').attr('value');
$('#quick_search input[@type=text]').focus(function() {
if ($(this).attr('value') == $(this).attr('title'))
$(this).attr('value', '');
});
$('#quick_search input[@type=text]').blur(function() {
if ($(this).attr('value') == '')
$(this).attr('value', $(this).attr('title'));
});
if ($('#frm').length > 0)
$('#frm_search').remove();
Thanks John