Skip to main content

Bug Tracker

Side navigation

#5738 closed bug (worksforme)

Opened January 01, 2010 02:01AM UTC

Closed June 13, 2010 11:29PM UTC

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();

Attachments (0)
Change History (2)

Changed January 01, 2010 02:02AM UTC by transom comment:1

Changed June 13, 2010 11:29PM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

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