hi, I am working on something like this
I have about 20 groups, each group contains two paragraphs, one
visible and one hidden; and two divs, one visible and one hidden.
Each group have a unique id from mysql.
What I am trying to do:
When you click on a paragraph, all divs and paragraph
Works great! Thanks a bunch
On Feb 18, 2:40 pm, James 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 wrote:
>
> > Is it possible to add strings toge
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 wrote:
> Is it possible to add strings together or does that need to be done
> outside in a variable?
> Something like ($"in
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 wrote:
> ($"input[name="+x+"]")
>
> On Wed, Feb 18, 2009 at 13:56, Zaliek wrote:
>
> > I haven't found any mention of this in
($"input[name="+x+"]")
On Wed, Feb 18, 2009 at 13:56, Zaliek 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]")
Haha! Thanks! :P
On Sep 19, 6:19 pm, MorningZ <[EMAIL PROTECTED]> wrote:
> var pageName = "foobar.html";
> var link = $("a[href$='" + pageName + "']");
> link.addClass('selected');
var pageName = "foobar.html";
var link = $("a[href$='" + pageName + "']");
link.addClass('selected');
7 matches
Mail list logo