Coda Clips

HTML Form With Legend

<form action="<<**SelectionInsertionPlaceholder**>>" method="get">
	<fieldset>
	<legend>Form Name</legend>
		<p><label for="first">First Input: </label><input type="text" name="first" id="first" /></p>
	</fieldset>
	<p><input type="submit" /></p>
</form>

Added to by Stuart Sharpe

Install Clip


jQuery hover class

$('**SelectionPlaceholder**').hover(
	function(){ $(this).addClass('hover') },
	function(){ $(this).removeClass('hover') }
)

Added to by Bart

Install Clip


CSS Centering

**SelectionInsertionPlaceholder** {
	position: absolute;
	width: 100px;
	height: 100px;
	top: 50%;
	left: 50%;
	margin-top: -50px;
	margin-left: -50px;
}

Added to by Tony McCallie

Install Clip


jQuery $(document).ready() shorthand

$(function(){
	*SelectionPlaceholder*
});

Added to by Bartek Stańkowski

Install Clip


CSS links sequence

a:link {
	color: #;
	text-decoration: underline
} 
a:visited {
	color: #;
}
a:hover,
a:focus {
	color: #;
	text-decoration: none;
}
a:active {
}

Added to by Bartek Stańkowski

Install Clip


jQuery $.get()

$.get(url, function(data){
});

Added to by Bartek Stańkowski

Install Clip


jQuery ajaxSetup

$.ajaxSetup({
	global: false,
	beforeSend:function(){
	},
	complete: function(){
	},
	error:function() {
	},
	type: "POST"
});

Added to by Bartek Stańkowski

Install Clip


jQuery getJSON

$.getJSON( url, function(data){
});

Added to by Bartek Stańkowski

Install Clip


Sponsored Links: