Skip to main content

Bug Tracker

Side navigation

Ticket #3954: test.html


File test.html, 0.7 KB (added by AlbertVanHalen, January 23, 2009 08:49AM UTC)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<title></title>
	<script type='text/javascript' src='http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js'></script>
	<script type='text/javascript'>
		$(function() {
			$("[name='foo']").css("border", "1px solid red");
			$("[name = 'bar']").css("border", "1px solid green");
		});
	</script>
</head>
<body>
	<div name="foo" style="width:200px; display:block">foo</div>
	<input type="text" class="test" name="foo" />
	<div name="bar" style="width:200px; display:block;">bar</div>
	<input type="text" class="test" name="bar" />
</body>
</html>

Download in other formats:

Original Format