after so much trouble I found out that jQuery 1.3 have propagation of events. thats the reason FF doesnt work. but Opera works differently
On Feb 26, 12:47 pm, How <wong...@gmail.com> wrote: > Hi > > I tried the code again and still doesnt work in Firefox 3 > I am using different jquery than yours. I am using jquery UI 1.6rc6 > and jquery-1.3.2 > > On Feb 24, 12:51 pm, RotinPain <rotinpain....@gmail.com> wrote: > > > > > I've just tested your code coz i'm curious and it's working with FF > > 3.0, or IE7...the code i tested is below. > > btw I would say <a>test</a> is a link, and <a name="test"></a> is an > > anchor ;) > > > Are you using the latest versions of jquery/ui ? > > > [code] > > <html> > > <head> > > <script type="text/javascript" src="jquery-1.3.2.min.js"></script> > > <script type="text/javascript" src="jquery-ui- > > personalized-1.5.3.min.js"></script> > > <script type="text/javascript" language="javascript"> > > $(document).ready(function(){ > > $('.column').selectable(); > > $('a').click(function(){ > > alert('test'); > > }); > > }); > > </script> > > </head> > > <body> > > <div class="column" style="border:1px solid green"> > > <a style="border:1px solid red">test</a> > > </div> > > </body> > > </html> > > [/code] > > > On 23 fév, 19:36, How <wong...@gmail.com> wrote: > > > > Hi > > > > need some help please. anchor in inside div is not working in firefox > > > when div isselectable, but works fine in opera. > > > > <div class="column"> > > > <a>test</a> > > > <div> > > > > $('.column').selectable(); > > > $('a').click(function(){ > > > alert('test'); > > > > });