Don't assume $ is jQuery. Rely on jQuery
global instead.
This commit is contained in:
parent
6da48f64c3
commit
4c7d6b0b3e
@ -8,6 +8,7 @@
|
|||||||
* 8/17/2011
|
* 8/17/2011
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
jQuery(function ($) {
|
||||||
$('body').on('click', 'ul.tabs > li > a', function(e) {
|
$('body').on('click', 'ul.tabs > li > a', function(e) {
|
||||||
//Get Location of tab's content
|
//Get Location of tab's content
|
||||||
var contentLocation = $(this).attr('href');
|
var contentLocation = $(this).attr('href');
|
||||||
@ -24,3 +25,4 @@ $('body').on('click', 'ul.tabs > li > a', function(e) {
|
|||||||
$(contentLocation).show().addClass('active').siblings().hide().removeClass('active');
|
$(contentLocation).show().addClass('active').siblings().hide().removeClass('active');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user