Coda Clips

Textarea Character Count (jQuery)

// controls character input/counter
$('textarea#body').keyup(function() {
var charLength = $(this).val().length;
// Displays count
$('span#charCount').html(charLength + ' of 250 characters used');
// Alerts when 250 characters is reached
if($(this).val().length > 250)
$('span#charCount').html('<strong>You may only have up to 250 characters.</strong>');
});

Added to by Mark Evans

Install Clip


jQuery Action

<script type="text/javascript">
$(document).ready(function() { 
/*place jQuery actions here*/ 
<<**SelectionInsertionPlaceholder**>>
}); 
</script>

Added to by Matthew Hunt

Install Clip


Adding Mint to your site

<script src="/mint/?js" type="text/javascript"></script>

Added to by Sam Brown

Install Clip


JavaScript Include

<script type="text/javascript" src="<<**SelectionInsertionPlaceholder**>>"></script>

Added to by Sam Brown

Install Clip


Sponsored Links: