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();
I found a similar issue reported here
http://www.highdots.com/forums/jquery/attribute-selection-not-working-msie-284098.html