Works great! Thanks a bunch
On Feb 18, 2:40 pm, James <james.gp....@gmail.com> wrote: > Make sure your single-quotes is wrapping the actual name > > $("input[name='element12']") > becomes: > $("input[name='element" +myVar+ "']") > > Just do > > On Feb 18, 12:38 pm, Zaliek <zali...@gmail.com> wrote: > > > Is it possible to add strings together or does that need to be done > > outside in a variable? > > Something like ($"input[name='element' + "+x+"]") > > > On Feb 18, 2:00 pm, aquaone <aqua...@gmail.com> wrote: > > > > ($"input[name="+x+"]") > > > > On Wed, Feb 18, 2009 at 13:56, Zaliek <zali...@gmail.com> wrote: > > > > > I haven't found any mention of this in the documentation. Can you use > > > > a variable in place of a string when using a selector to match an > > > > element in a page? If so, what is the syntax? > > > > > x = foobar > > > > $("input[name=x]")