Sunday, October 2, 2011

Re: Make link disabled

or use 'javascript:void(0)' as link


On 1 Okt., 22:09, Ryan Schmidt <google-2...@ryandesign.com> wrote:
> On Oct 1, 2011, at 13:47, Dominik Gajewski wrote:
>
> > How to make in Cake link disabled??
> > <?php echo $this->Html->link('name',      array('controller' => 'bookings',
> > 'action' => 'book'),
> >                                                    array('disabled' => 'disabled')); ?>
>
> > This is not working
>
> I'm not aware of the HTML "A" tag supporting a "disabled" attribute. If you want a link to not do anything when clicked, don't output a link in the first place; just output the text, perhaps enclosed in a span so you can style it to look like a disabled link.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: