How To Store Global Data Using jQuery
erics, Posted June 5th, 2011 at 8:44:35pm
1 2 3 4 5 6 7 |
jQuery('body').data('myGlobalVarName', { thePath: window.location.pathname, theHREF: jQuery(location).attr('href'), theTitle: jQuery(this).attr('title'), Foo: 'bar', hello: 'world', }); |
Leave Your Comment
All fields marked with "*" are required.