I m a newbie to jQuery. I met a issue when using the [name=value] selector. Here is the HTML:
<input type="number"/>
Very simple, right? And here is the JS:
$("input").val(100);
$("input[value= 100 ]").val(200)
The result is: the first line of the script works, but not the second line.(Chrome, FF, IE9) The both line works in IE8. How this happens? BTW, I m using jQuery1.7.2. Or you can just test the above code on http://jsfiddle.net/wzKNV/