Sorry, i think i was sleeping when i wrote the code hehe
Its $count.data('clone_count').
My mistake.
2009/6/6 Peter Marino
> hi,
> ok... now I tried it.. but it
> seems that
>
> $count.('data')
>
> is not valid way of testing if data is there.. my javascript dies at that
> point.
>
> peter
>
> On
hi,
ok... now I tried it.. but it
seems that
$count.('data')
is not valid way of testing if data is there.. my javascript dies at that
point.
peter
On Fri, Jun 5, 2009 at 11:30 PM, Gustavo Salomé wrote:
> $count=$(".div_count");
> var clone_count =!$count.('data') ?1:$cont.data('clone_count')+
super.. that's a step in the right direction
thank you
On Fri, Jun 5, 2009 at 11:30 PM, Gustavo Salomé wrote:
> $count=$(".div_count");
> var clone_count =!$count.('data') ?1:$cont.data('clone_count')+1;
> $count.data('clone_count',clone_count);
>
> 2009/6/5 Peter Marino
>
> Hi jQuery,
>> I have
$count=$(".div_count");
var clone_count =!$count.('data') ?1:$cont.data('clone_count')+1;
$count.data('clone_count',clone_count);
2009/6/5 Peter Marino
> Hi jQuery,
> I have the following:
>
> if ( $(".div_count").data("clone_count")==undefined )
> {
> $(".div_count").data( "clone_count", 1 );
>
4 matches
Mail list logo