Skip to main content

Bug Tracker

Side navigation

Ticket #167: firefox.html
File firefox.html, 0.7 KB (added by chocolateboy, September 04, 2006 08:40PM UTC)

Firefox test case for bug #167

<html>
    <head>
	<title>Firefox Test Case</title>
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script>

	    $(function () {
		alert("start");

		alert("setting checkbox to checked...");
		$('#cb').attr('checked', true);
		alert("setting checkbox to unchecked...");
		$('#cb').attr('checked', false);

		alert("setting radio to checked...");
		$('#rd').attr('checked', true);
		alert("setting radio to unchecked...");
		$('#rd').attr('checked', false);

		alert("done");
	    });

	</script>
    </head>
    <body>
	<form>
	    My Checkbox:
	    <input type="checkbox" id="cb" />
	    My Radio:
	    <input type="radio" id="rd" />
	</form>
    </body>
</html>

Download in other formats:

Original Format