[jQuery] Rev 110 -> 152 Upgrade woes
> I ... noticed that something like this ...
>
> $("#submitbtn").each(function(){
> this.disabled = true;
> this.value = "Searching ...";
> });
> ... stopped working.
The term "stopped working" covers a lot of ground. Do you have a test case
with just that code in it, or was it part of a very large page with other
code? Is the page valid CSS and HTML? Does it fail in all browsers or just
some? What does alert($("#submitbtn").length) return?
Although that code should work, you should be able to use a jQuerified chain
instead:
$("#submitbtn").attr("disabled", true).val("Searching...");
$("#submitbtn").attr({disabled: true, value: "Searching..."});
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/