Is it a good or bad practice to use jQuery statements in plain javascript functions outside of ready? If not what is the correct way?
//** End ready **//
function doSomething() {
selectedClickBoxIndex = parseInt( jQuery('.' + clickBoxOnClass ).attr('value') );
// Javascript code
}
nothing wrong. When you include the jquery file, you’re expanding your functionality, free to use wherever you want