Member Offer
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

jQuery

Discussion in 'Website Design Forum:' started by CSparkes, May 13, 2010.

  1. CSparkes

    CSparkes Senior Member

    Hi,

    Quick question, any know the calling need to use so that in site JQuery manipuates a div and adds in.

    Example.

    HTML Code

    HTML:
    <div id="content">ORIGINAL CONTENT</div>
    What Needs to be seen by browser

    HTML:
    <div id="content">
    <div id="top"></div>
    <div id="middle">ORIGINAL CONTENT GOES IN THIS TAG</div>
    <div id="bottom"></div>
    </div>
    
    So can add some styling top it across a site without having to copy each of the above, design of site is stipulating above and will change quite often.

    Have an example done in Javascript but need to do via JQuery.

    Cheers

    Craig
     
  2. tbwcf

    tbwcf Active Member

    Something like this should work

     
  3. CSparkes

    CSparkes Senior Member

    Perfect! Will give this a bash now, looks ideal for what need so thanks for that!
     
  4. CSparkes

    CSparkes Senior Member

    Worked Perfectly! Solved problem! Cheers dude really appreciate it.
     

Share This Page