Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<header id="headerClass">
                <div class="loader">
                    <div class="title">Loading...</div>
                     <div class="load">
                        <div class="bar"></div>
                     </div>
                </div>
 </header>



can any one help how to conver them to jquery i mean jquery dom
Posted
Updated 27-Jul-15 23:48pm
v2
Comments
F-ES Sitecore 28-Jul-15 6:16am    
google "create html elements jquery"
venkat teja 28-Jul-15 6:59am    
Hi not getting
venkat teja 28-Jul-15 8:21am    
using this able to add title class not able to add load class Inside the loader

1 solution

There are various ways to do this so, as suggested by @F_ES Sitecore, my suggestion is also to look for different solutions and pick that which best suits to your requirement.

A simple way to do this can be like-
JavaScript
var elementBlockToBeAdded="<header id="headerClass"><div class="loader"><div class="title">Loading...</div><div class="load"><div class="bar"></div></div></div></header>";
$("body").append(elementBlockToBeAdded);


Hope, it helps :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900