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

Re : Accessing

$
0
0
Isn't the element already inserted into the DOM at that point? I'd like to manipulate before that happens.

Here's another simple example. Let's say I was creating a carousel slider of pictures. Here's what I envision the DOM initially looking like.
  1. <my-carousel>
        <img src='a.jpg'/>
        <img src='b.jpg'/>
        <img src='c.jpg'/>
        <img src='d.jpg'/>
    </my-carousel>

In this instance I'd like to be able to wrap some image tags with my custom tag and have it grab all the images generate a slider.

Viewing all articles
Browse latest Browse all 3491

Trending Articles