Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- div(data-role='content')
- div(class='content-primary')
- ul(data-role="listview", data-split-theme='a',data-split-icon='gear')
- li(data-theme='a')
- a(href="")
- div(id='addClientDivId')
- a(href='#', data-icon='delete', title=' Delete ')
- var newContent = '<div data-role="content" data-theme="a" class="content-primary">';
- newContent += '<ul data-role="listview" data-split-theme="a" data-inset="true" id="ulId">';
- newContent += '<li>';
- newContent += '<a href="">';
- newContent += '<h4></h4>';
- newContent += '<h5></h5>';
- newContent += '<a href="" , data-icon="delete">';
- newContent += '</a>';
- newContent += '</a>';
- newContent += '</li>';
- newContent += '</ul>';
- newContent += '</div>';
- $("#addClientDivId").append(newContent).trigger('create');
- var contentDiv = $('<div></div>').attr('data-role','content');
- var contentPrimary = $('<div></div>').attr('class', 'content-primary');
- var ul = $('<ul></ul>');
- $(ul).attr('data-role', 'listview').attr('data-split-theme', 'a').attr('data-split-icon','gear');
- for(..) {
- var li = $('<li></li>');
- var liContent = $('<a></a>').attr('href', 'a');
- // You can build the rest of your li content here.
- // Append the li content to the li
- $(li).append(liContent);
- // And then append the li to the ul
- $(ul).append(li);
- }
- $(contentPrimary).append(ul);
- $(contentDiv).append(contentPrimary);
- $('body').append(contentDiv);
- var contentDivAsString = '<div data-role="content">....</div>';
- $('body').append($(contentDivAsString));
- var aMain=$('<a/>', {
- 'text':'Delete',
- 'href':'',
- 'data-icon':'delete',
- 'title':' Delete '
- });
- var acDivid=$('<div id="addClientDivId"></div>');
- var a=$('<a href=""></a>');
- var li=$('<li data-theme="a"></li>');
- var ul=$('<ul />', {
- 'data-role':'listview',
- 'data-split-theme':'a',
- 'data-split-icon':'gear'
- });
- var cP=$('<div class="content-primary"></div>');
- var content=$('<div data-role="content"></div>');
- $('body').append(content.append(cP.append(ul.append(li.append(a.append(acDivid.append(aMain)))))));
Add Comment
Please, Sign In to add comment