Bug Tracker

Opened 13 years ago

Closed 13 years ago

#5738 closed bug (worksforme)

var value = $(this).val() fails in IE

Reported by: transom Owned by:
Priority: minor Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description

This code was failing on IE(7/8)

jQuery(document).ready(function($){

$('#zipcode').bind('blur', function(){

var zipcode = $(this).val(); alert(zipcode);

});

});

where #zipcode is an input text field in a form

but making this change solved the problem:

var zipcode = ; zipcode = $(this).val();

Change History (2)

comment:2 Changed 13 years ago by dmethvin

Resolution: worksforme
Status: newclosed

I can't repro this problem in IE8, if you still have the issue attach a complete test case.

Note: See TracTickets for help on using tickets.