<div id="nam1" class='nc1 nc2 nc3 hidden'></div>
<div id="nam2" class='nc1 nc2 nc3 hidden'></div>
<div id="nam3" class='nc1 xxx hidden'></div>
<div id="nam4" class='nc1 xxx hidden'></div>
and I would like to handle only div elements with class values
starting with "nc1 nc2"
how can do it?
I tried this code..but it doesn't work
var div_elements = $('.nc1 nc2');
div_elements.removeClass('hidden');
Antonio
On 29 Giu, 18:04, Mean Mike <mcgra...@gmail.com> wrote:
> your missing quotes
> $('.nc1').removeClass('hidden')
>
> On Jun 29, 11:58 am, Antonio <antonio.pie...@gmail.com> wrote:
>
> > Hi folk,
>
> > In HTML code I have this situation:
>
> > <div id="nam1" class='nc1 nc2 nc3 hidden'></div>
> > <div id="nam2" class='nc1 nc2 nc3 hidden'></div>
>
> > I would like to remove "hidden" to class value which class value
> > starts with "nc1"
>
> > I tried the following jquery code, but it doesn't work.
>
> > $(.nc1).removeClass('hidden')
>
> > Any ideas?
>
> > thanks
>
> > Antonio
No comments:
Post a Comment