Hi Brett,

I'm pretty sure this should work:

$("[EMAIL PROTECTED]" + currentLetter + "]")

Forgive me if this is what you've already tried. It was hard to tell because you only included part of the selector in your second example.

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Aug 28, 2007, at 12:00 AM, Brett wrote:


Hello there, I've been loving jQuery so far - so efficient, and a
great piece of code to work with.

I was wondering if it is possible to use jQuery in a loop where I need
to set a row of values in.
For example if there was a set of input boxes named totalA - totalE.
To change the first,  I would use:
$("[EMAIL PROTECTED]'totalA']").val("the value I want to put on this
form");

But is there a way I can make @name a variable, or a combination of
strings?
@name='total' + currentLetter      Does not work like I thought it
would have..
I think there is something fundamentally wrong that I'm doing...


Reply via email to