0

I want to diaplay if the checkbox is checked or not

<html>
<head>
</head>
<body>
<form name="frm">
Languages:
<input type="checkbox" name="check" ng-model="check">telugu
<input type="checkbox" name="check" ng-model="check1">Hindi
<span ng-show="frm.check.$dirty && frm.check.$error.ng-checked">not-checked</span>
</form>
</body>
</html>
1
  • If the checkbox is not selected or not checked then it should display that checkbox is not clicked Commented May 29, 2014 at 6:16

1 Answer 1

1

First, if you checkbox is not checked initially, it won't be in dirty state until user changes it. But, if you want to show the span anyway, better use this.

<span ng-show='check==false'>Not Checked</span>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.