Ticket #6221 (closed bug: fixed)
Internet Explorer and NULL val()
|Reported by:||Vic D'Elfant||Owned by:|
Internet Explorer appears to be treating NULL as the string "null" when passed to an element's value property (or .val(), for that matter). If data is - for example - retrieved through AJAX and then passed to input fields to pre-fill a form, it is very impractical to check for NULL and run .val() on every call.
The attached patch improves the val() function by checking for NULL and setting this.value to an empty string if this is the case. The behaviour for non-null values remains untouched.
- Keywords null val added
- Priority set to low
- Type changed from enhancement to bug
- Status changed from new to open
- Milestone changed from 1.4.3 to 1.5