Oh, it wasn't only the start... it was the finish too. It worked. I
changed cases just as Dave and Blair, and everyone else suggested, and
it worked straight away... I'm only pullin' my hair out, because of the
deadline that's comin' up, and these two seemingly simple problems took
me part of yesterday and all of today. :o/
Thanks for you help on both, Jake! :o)
I'm gonna turn in my hours, go home, and eat. Yay!
Cheers,
Chris
Ⓙⓐⓚⓔ wrote:
Don't pull your hair out.... try lowercase id, or try a different name
that won't conflict with the real id. I have no idea what IE will do
with the different cases, but since it works for everybody else when
we use lowercase.... it's a start!
On 1/4/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
Yes. Yes it did... and I pulled my hair out over it. :oS *sigh* oh well...
it still confuses me that this worked:
$(this).attr("ID");
but this did not:
$(this).attr("ID", "Row_" + i);
The former didn't care about case, while the latter did. What's up with
that, I'd like to know! :o)
Cheers,
Chris
Blair McKenzie wrote:
Does the case of 'ID' make any difference?
Blair
On 1/5/07, Christopher Jordan <[EMAIL PROTECTED] > wrote:
Hi folks,
I've got another simple question. Is this not how you set an element's
attribute?
[from inside an .each()]
$(this).attr("AttributeName", "Value");
I thought that worked... I thought it had worked for me in the past.
Is there any reason that this wouldn't work:
var i = 1;
$("div.OrderEntryListRow").not(".Selected").each(function(){
alert("before: " + $(this).attr("ID"));
$(this).attr("ID", "Row_" + i);
alert("after: " + $(this).attr("ID"));
i++;
});
In this sample code above, the before and after alerts are identical. Is
there something else I'm missing?
I think I've got the above idea correct, but wanted to get some different
eyes to look at it with me.
Thanks,
Chris
--
http://www.cjordan.info
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
________________________________
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
http://www.cjordan.info
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
http://www.cjordan.info
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/