Jon schrieb:
Hi,

I have an element like this: <a id="a1" href="javascript:doSomething
();">#a1</a>
However, when I do this: $('#a1').click(); ... then my doSomething()
do not get called. Why?

Try the jQuery-Way:

<a id="a1" href="#">#a1</a>

$('#a1').click( function() {
        doSomething();
        return false;
        });




--
Viele Grüße, Olaf

-----------------------------------
olaf.bo...@t-online.de
http://olaf-bosch.de/
http://ohorn.info/
http://www.akitafreund.de/
-----------------------------------

Reply via email to