Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

I found a similar issue reported here http://www.highdots.com/forums/jquery/attribute-selection-not-working-msie-284098.html