View Single Post
Old 10-09-2012, 04:45 AM   PM User | #6
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
I have no idea, but here are a couple of guesses:

one, there is a semi colon before your function declaration in your jscript_customradio.js file, which might mean nothing, but probably isn't helping:
;(function(){

the bigger one is that you should be waiting for your elements to be rendered before trying to alter them - and being that you have placed this script in the head, that hasn't happened yet.

I would try putting the function call in a document ready wrapper:

Code:
$(document).ready(function() {
$('input[type=checkbox], input[type=radio]').customRadioCheck();
});
xelawho is offline   Reply With Quote