//** End ready **// function doSomething() { selectedClickBoxIndex = parseInt( jQuery('.' + clickBoxOnClass ).attr('value') ); // Javascript code }