View Single Post
Old 02-28-2009, 06:17 AM  
ScriptWorkz
Confirmed User
 
Industry Role:
Join Date: Jul 2007
Location: Intraweb
Posts: 274
Quote:
Originally Posted by Mutt View Post
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

Last edited by ScriptWorkz; 02-28-2009 at 06:18 AM..
ScriptWorkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote