Good observation Olaf but it doesn't work...

Actually it's strange, isn't it?

If I do this it works when you click wherever in the div:
$(document).ready(function(){
$("#id_div").click(function(){ etc...

while like that it doesn't work at all:
$(document).ready(function(){
$("#log_out_link").click(function(){ etc...

That means to me I can't get a <a> element inside a <div> directly...
is that true?
sounds strange...



Karl I tried also to put return false in the last line but nothing
happen...

Instead for this possibility
.click(function(event) {
event.preventDefault();
etc...

I really don't know how to use it!

Anyway I'm not preventing the default event from firing, at least not
on purpose... ;-)

any other advice?

by the way, many thanks guys for the help!!!

On Apr 24, 11:17 pm, Olaf Bosch <[EMAIL PROTECTED]> wrote:
> ^AndreA^ schrieb:
>
> > Yes, href="#"...
>
> > Could it be a problem?!?
> > I put # just in oder to make it a link...
>
> > This is what I've got into my <div>:
>
> > <b>Welcome</b> <i>$_user</i>!!! <br/> <a href='#' id='log_out_link'>
> > Log out </a>
>
> why bind you not direct to the given ID, so:
>
> $(document).ready(function(){
> $("#log_out_link").click(function(){ etc...
>
> --
> Viele Grüße, Olaf
>
> -----------------------------------
> [EMAIL PROTECTED]://olaf-bosch.de/http://ohorn.info/http://www.akitafreund.de/
> -----------------------------------

Reply via email to