0

I have a checkbox, and one directive. I need get the properties of the checkbox. if I put

console.log(element)

I get this:

enter image description here

I need get any property of that. but that I put:

console.log(element[0])

but the result is this.

enter image description here

How can access to the properties of the my checkbox?

http://jsfiddle.net/3njt42j4/

2
  • you have the reason... write the answer, i will give the correct answer Commented Mar 24, 2017 at 20:21
  • Umm, ask for one of the properties rather than the whole object? Commented Mar 24, 2017 at 20:23

1 Answer 1

1

You already have access. Try running: console.log(element[0].checked) and it should log whether the checkbox is checked or not.

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.