Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Accessing

$
0
0
When creating a can.Component is there a way to access and manipulate the DOM embedded within the component's tag?

For example. If I have:
  1. <my-component>
      <section id="a">
        <div>Some Text A</div>
      </section>
      <section id="b">
        <div>Some Text B</div>
      </section>
    </my-component>

How can I access and manipulate the "section" tags? Maybe show one, but the not other, etc...

Viewing all articles
Browse latest Browse all 3491

Trending Articles