Single Script Not Working in IE
Hello.
I have several jQuery scripts on my webpage. In Firefox and Chrome - all the scripts function as expected. In Internet Explorer (I am using version 9) - all the scripts, except one works.
- $(".SpecificTextboxClass").change(function() {
- if ($(this).val() == 3) {
- $(".SpecificTextboxClass").not(this).val(0);}});
This is applied to a HTML textbox
- <input type="text" name="scale" class="Validation SpecificTextboxClass" value="1">
The script works when the validation code is removed:
- $('.Validation').keyup(function () {
- if ("" != this.value.replace(/([0-9]|10)(\.\d{1,3})?]/g, '')) {
- this.value = this.value.replace(/[^0-9\.]/g, '').substring(0,5);}});
Finally a
Fiddle of the code - which will not work in IE.
Can anyone shed any light on how to get the two scripts to co-exist?