ok..
can I see the corresponding HTML code
where is defined "iti" and "skipped" ?

On 29 Giu, 21:38, Mean Mike <mcgra...@gmail.com> wrote:
> thats odd I use that syntax all the time  like this
>
>     $("#iti, #skipped").sortable({
>         connectWith: ['.connectedSortable'],
>         receive: function(e, ui) {
>             var item_id = $(ui.item).attr('id');
>             $(ui.item).attr('id', $(this).attr('id') + item_id.substr
> (item_id.indexOf("_")));
>         },
>         containment: '#content'
>     });
>
> On Jun 29, 3:12 pm, Antonio <antonio.pie...@gmail.com> wrote:
>
> > also
> > var div_elements = $('.nc1, nc2') doesn't work
> > because it works like nc1 OR nc2
>
> > the solution is to write
> > var div_elements = $('.nc1.nc2')
> > i.e. .nc1.nc2 tied without empty space..
>
> > thanks
>
> > Antonio
>
> > On 29 Giu, 21:01, Mean Mike <mcgra...@gmail.com> wrote:
>
> > > my bad you need a comma separator as well
> > > var div_elements = $('.nc1, .nc2');
>
> > > On Jun 29, 2:55 pm, Antonio <antonio.pie...@gmail.com> wrote:
>
> > > > As you can see at this 
> > > > page:http://webcms.ba.infn.it/~pierro/GUIcondDb/CondDBMonitoring/test.html#
>
> > > > var div_elements = $('.nc1 nc2');
> > > > doesn't work
>
> > > > Antonio
>
> > > > On 29 Giu, 19:37, Antonio <antonio.pie...@gmail.com> wrote:
>
> > > > > and if I have the following html code
>
> > > > > <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

Reply via email to