Hi, I have have the following code on an aspx page. The code I am trying to create is to display whther a checkbox when it is is clicked on.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script>
$(document).ready(function()
{
$("input[title$='HalfDay']").click(function()
{
if ([title$='HalfDay'].checked) {
alert("Checked");
}
else {
alert("Not Checked");
}
});
});
</script>
The line which I think is wrong is this line...
if ([title$='HalfDay'].checked) {
But I'm not sure what it should be?
Thanks for any help!