Quote:
Originally Posted by Mutt
i'm trying to use this script here, it's a jquery thing that pretties up forms http://www.no-margin-for-errors.com/...ttyCheckboxes/
so i follow the instructions which say to include the jquery and prettycheckboxes js files in the head section
then it says:
Then you need to initalize prettyCheckboxes.
Code:
$(document).ready(function(){
$('input[type=checkbox],input[type=radio]').prettyCheckboxes();
});
i looked at the source of the demo page, that code isn't in there. i looked in the js file, prettycheckboxes - not there. where do i put it? 
|
you can put it in your head tag between some script tags, or in it's own js file and include it with a script tag...
Code:
<script type='text/javascript'>
<!--
$(document).ready(function(){
$('input[type=checkbox],input[type=radio]').prettyCheckboxes();
});
//-->
</script>
Code:
<script type='text/javascript' src='/path/to/file.js'></script>
also, i think $('input[type=checkbox],input[type=radio]').prettyCheckboxes(); should be $('input[@type=checkbox],input[@type=radio]').prettyCheckboxes(); if it's not too early and i'm mistaken