There is nothing wrong. jQuery is just a Javascript library, there is no strict separation between them.
You might want to use the val
function, but:
function doSomething() { selectedClickBoxIndex = parseInt( jQuery('.' + clickBoxOnClass ).val() );
Guffa source share