mmm..

$(document).ready(function(){ var x = $("input[name=name]").val(); window.alert(x); });

Works for me in IE 7


When you say "no results", do you mean, an error?? or just that $("input[name=name]").val() is returning an empty string??



----- Original Message ----- From: "V" <vincenti...@gmail.com>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Friday, August 07, 2009 2:45 AM
Subject: [jQuery] Re: Attribute selection not working in MSIE; eg $("input[name=name]").val()



Sorry about the lack of information :o

The input box is:
<input type="text" name="name" value="" />

The jQuery code is:
$("input[name=name]").val();

And no results.

The problem exists on MSIE8, but I think to remember it also is in
MSIE7..
On firefox it works great.

Reply via email to