AOKWORLD

June 25, 2009

Use jQuery.noConflict() can be compatible with other js library

Filed under: Web Develop, javascript, jquery — Tags: — A.D.JC @ 3:37 pm

Use jQuery.noConflict() redefine default selector of jquery, yes, it's "$".
You can rename $j(), $jQuery()...

But, before use jQuery.noConflict(), other js library must be loaded.

For example:

var $j = jQuery.noConflict();
$j(document).ready(function(){
	$j("#btn").click(function(){
	$j(this).hide();
	})
});

February 27, 2009

Useing jQuery

Filed under: jquery — Tags: — A.D.JC @ 9:16 am

That's good. When you say nothing at all.

Powered by WordPress