have this page here:
http://cl.ly/2J170M3f340X3M2A1O1I - for now I am going to try to code a section where:
- On click of the left pane, it loads in a hidden div. I am thinking I can have it based on the ID of the <a> and the <div id="XX"> and keep it wired that way.
- I will have the same for all 4 tabs on the top. What would be the best way to load a hidden div on click onto that main content area?
Trying to develop this using jQuery.
- Click - grab ID
- Find a DIV with the same ID
- Grab HTML
- Insert in to DIV
Is there a faster way to do that?
Thanks.
The id attribute MUST be unique, so you cant grab an id and look for something with the same id - yiou'd be selectuing the same dom element.
To grab the html, use
Open in new window
Once you have this, you can use the same function to insert it into the div. If the div has id="blah" and the clicked element has id="grabbed":Open in new window