y0, Not really, why do you need to/ or want to? you could do this 

$('#Play').click(function() { $.cookies.set('WCA.Player', 'Play', { path:
'/' }) })

ha, j/k same thing, just one line.  Could you just explain why you would
like to do it a different way? or where you just wondering?




shapper wrote:
> 
> Hello,
> 
> I am using the following to create a cookie and it is working fine:
>   $('#Play').click(function() {
>     $.cookies.set('WCA.Player', 'Play', { path: '/' });
>   });
> 
> Is there another way to do the same code but something like:
>   $('#Play:click').cookies.set('WCA.Player', 'Play', { path: '/' });
> 
> Thanks,
> Miguel
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Click-Even-tp26619100s27240p26620234.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to