$("#functionClick").click(function(){
   function1(value);
   function2(value);
   return false;
});

ID's are unique, you don't need to prefix this with the element.
Use an anonymous function, that calls both of your custome functions.
Prevent the link from being followed by returning false.

Kris


On Apr 1, 11:05 pm, cmt <[EMAIL PROTECTED]> wrote:
> I have 2 javascript calls in an <a href> tag.  Originally I had just
> used standard javascript and put the 2 functions together like this:
>
> <a id ="functionClick" href="javascript:function1(value);
> function2(value);">click me to execute the 2 javascript functions</a>
>
> But it only worked part of the time.
>
> I then tried changing it using jQuery like this:
>
> <head>
> <script language="javascript">
>     $('a#"functionClick"').click( "function1(value)" );
> ("function2(value");
> </script>
> </head>
>
>     <a href="#"functionClick"">click me to execute the 2 javascript
> functions</a>
>
> But nothing happens...I am sure I massacred by jQuery...
>
> Could anyone point me in the right direction?
>
> Thanks!

Reply via email to