$("#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.
Kri
Very clean and concise markup, degrades wonderfully. Truly the type of
work one would look for and appreciate.
Thanks for sharing.
Kris
On Apr 1, 5:15 pm, GianCarlo Mingati <[EMAIL PROTECTED]>
wrote:
> Hi Chris
> yep there's a CMS entirely built from scratch by a friend of mine.
>
> Since the b
You document ready event is perfect for firing off javascript on
existing elements. But thats it. If you create elements on the fly,
you'll have to call the applicable functions you require when you load
the new DOM objects. For instance, if you create a new draggable
element, you are going to
Lets backtrack for a moment.
I have a similar situation, but I don't use that particular plugin
(its an older setup, recently modified with jQ).
When you load the new div with your ajax call, add the sort to your
success: function.
For example, in your test case:
$.ajax({
type: "GET",
cont
jQuery plugin Cycle helped me out earlier, and it can probably help
you too.
Check out the "pager" transition on this page, though you would want
the fx = fade: http://malsup.com/jquery/cycle/int2.html
Kris
On Mar 9, 12:46 am, jerpod <[EMAIL PROTECTED]> wrote:
> I'm working with innerfade and i
Have you already bound a function to that elements click event?
Kris
On Mar 9, 12:30 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have this link that I like to automatically 'click' in the script:
>
> test link
>
> here is my code, but it does not 'click', any idea? tha
elements with text in them as well.
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Mar 5, 2008, at 4:19 PM, Drake Aedus wrote:
>
>
>
>
>
> > I'm pretty new to jQuery, and I'm having a lot of fun with i
I'm pretty new to jQuery, and I'm having a lot of fun with it. I tried
a quick search and didn't find anything really helpful, so maybe this
is a good question, or maybe I'm having a brain-fart...
What I am trying to do, is loop through a list of child nodes, and
only display one at a time. It i