Forums

[Solved] Jquery in load js event

YOOlabs 21 Feb, 2013
Hi, Sorry for this question, but is ist possible to use jquery in the load js Event of the Form?
GreyHead 21 Feb, 2013
Hi YOOlabs,

Yes, it's no problem but you need to make sure that it is in NoConflict mode. There's an example in this FAQ - though actually that was set up in a Custom Code action.

Bob
YOOlabs 21 Feb, 2013
Thanks,
missed that.
As I already load jquery in noconflict mode in another part of the page,
i can simply use:

(function($){

	$(document).bind('ready', function() {
mycode
	});
	
})(jQuery);
GreyHead 21 Feb, 2013
Hi YOOlabs,

My understanding of JavaScript binding is pretty poor - so I try to avoid using $ with JQuery in case it gets mixed with the MooTools $, if it does then stuff breaks.

Bob
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger