Use the cancel option:

jQuery("#contacts").selectable({ cancel: "a" });

or

jQuery("#contacts").selectable({ cancel: ":input,option,a" });

See

http://docs.jquery.com/UI/Selectable#option-cancel

- Richard

On Fri, Mar 27, 2009 at 12:38 AM, BigFoot <[email protected]> wrote:

>
> With jQuery UI 1.7.1 and jQuery 1.3.2, I still have the problem to
> work with click-events.
>
> HTML:
> <html>
> </head>
> <link type="text/css" rel="stylesheet" href="css/jquery-ui-
> themes-1.7.1/base/ui.all.css"></link>
> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
> <script type="text/javascript" src="js/jquery-ui-1.7.1.min.js"></
> script>
> <style type="text/css">
> #contacts {list-style:none;width:260px;}
> #contacts li {margin-bottom:5px; background-color:silver;}
> #contacts .ui-selectee h3 {background-color:#afc;}
> #contacts .ui-selecting h3 {background-color:#cfa;}
> #contacts .ui-selected h3 {background-color:cyan;}
> </style>
> </head>
> </style>
> <script type="text/javascript">
>        jQuery(document).ready(function(){
>        jQuery("#contacts").selectable();
>  });
> </script>
> <body>
> <ul id="contacts">
> <li>
> <h3>Tom</h3>
> <dl>
> <dt>phone</dt><dd>123456</dd>
> <dt>email</dt><dd><a href="mailto:[email protected]";>[email protected]</
> a></dd>
> </dl>
> </li>
> <li>
> <h3>Bob</h3>
> <dl>
> <dt>phone</dt><dd>234567</dd>
> <dt>email</dt><dd><a href="mailto:[email protected]";>[email protected]</
> a></dd>
> </dl>
> </li>
> <li>
> <h3>Alice</h3>
> <dl>
> <dt>phone</dt><dd>345678</dd>
> <dt>email</dt><dd><a
> href="mailto:[email protected]";>[email protected]</a></dd>
> </dl>
> </li>
> </ul>
> </body>
> </html>
>
>
> I can select the list. but with mailto, I clicked the email link, it
> doesn't not trigger my email client anymore.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to