- Screen name: John Chacko
- About Me: JavaScript Programmer
- Blog:
- Website:
John Chacko's Profile
26 Posts
518 Responses
3
Followers
Show:
- Expanded view
- List view
Private Message
- Pls see release notes....
It is now possible to change button‘s data-theme programatically via
_setOption.
I don't see anything on this in documentation..does anybody know how to use this.... ?- see this sample in android 2.x browser..its a sample to replicate a scenario in my application..its abt listening to 'tap' and calling changePage from listener...the second page is having some input fields, 'tap' event is bubbling/propagating to second page and focus is randomly set to input fields...I read similar issues and want to know anybody experienced same issue and got a workaround for it....Or I must use only 'click' ?
- this may be discussed earlier...I read jquery internally uses document.getElementById for $("#myDiv")1.but below test case show huge performance difference between$("#myDiv")
and
document.getElementById("myDiv")2.another scenario I tried is below where second part is faster.$("#myDiv .blah"); vs $(document.getElementById("myDiv")).find(".blah");http://jsperf.com/jquery-getbyid
So if somebody keen on performance, its better to use document.getElementById for selecting with id.
is it right?
- Got a listview with left aligned icon.Unable to bind 'click' to icon.Able to get all icon's span with selector.
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css"/>
- <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
- <script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
- <script>
- $('#home').live('pageshow', function (event, ui) {
- console.log($.mobile.activePage.children(":jqmData(role=content)").find("UL").find("span.ui-icon"));
- $.mobile.activePage.children(":jqmData(role=content)").find("UL").find("span.ui-icon").bind("click", function (e) {
- alert("Icon clicked");
- e.preventDefault();
- e.stopPropagation();
- });
- });
- </script>
- <style>
- .ui-btn-hover-c.ui-btn-up-c.ui-btn-active span.ui-icon-arrow-r {background-position: -355px 0%;}
- .ui-btn-up-c .ui-icon, .ui-btn-hover-c .ui-icon {
- left: 10px;
- }
- li a {
- padding-left: 35px!important;
- }
- </style>
- </head>
- <body>
- <div data-role="page" class="type-index" id="home">
- <div data-role="content">
- <ul data-role="listview" data-inset="false" data-theme="c">
- <li><a href="#">Item1</a></li>
- <li><a href="#">Item2</a></li>
- <li><a href="#">Item3</a></li>
- </ul>
- </div>
- </div>
- </body>
- </html>
below is html
- <div data-role="content">
- <div style="width:250px">
- <input type="button" data-theme="e" value="data-theme='e'" id="testButton1"/>
- </div>
- <div style="width:250px">
- <input type="button" data-theme="b" value="data-theme='b'" id="testButton2"/>
- </div>
- </div>
changing the button theme as below$("#testButton1").buttonMarkup({ theme: "b" }).button("refresh")(This code can be directly tried from chrome/ff console)it changes the theme.. but when I hover the button it returns to old theme.And trying to change theme again wont work at all.I knowh ow to change themes by directly changing underlying css classes.But is above 'refresh' method supposed to work? or a bug?- I am trying to avoid hitting DOM in loop.If I do below line in loop.var d= $("<div>blah</div>");
Is it hitting the DOM or it creates object and keep only in cache until call append()$("body").append(d);- Is it ideal to have more than one header(data-role=header) or headers in content(data-role=content)I know the use of navbars.something like...
- <div id="home" data-role="page" data-theme="b">
- <div data-role="header" data-theme="c">
- </div>
- <div data-role="header" data-theme="d">
- </div>
- <div data-role="content" data-theme="d">
- <div data-role="header" data-theme="a">
- </div>
- </div>
- </div>
This works fine in normal rendering.But headers are not seems to be enhanced right when injecting to content.- It a general javascript question.I am using closures a lot and want to make sure not keeping too many variables in memory.see sample code below.Creating 10 div and attaching click event listener.Event listener function is using a private variable of its parent. So a closure is created.I assume variable '_closure' will not be garbage collected.Put a breakpoint and '_local' got no scope.Assume its garbage collected.. right?
- function f() {
- var _local = 1;
- var _closure = 2;
- var _div;
- for (var i = 0; i < 10; i++) {
- _div = $("<div>" + i + "</div>");
- _div.on("click.test", function (i) {
- return function () {
- alert(_closure++);
- }
- }(i));
- $("body").append(_div);
- }
- }
- $(document).ready(function () {
- f();
- });
is below a better design considering performance. It creates less anonymous functions.. ?- function f() {
- var _local = 1;
- var _closure = 2;
- var _sub = function (i) {
- return function () {
- alert(_closure+++" ---- " + i);
- }
- }
- var _div;
- for (var i = 0; i < 10; i++) {
- _div = $("<div>" + i + "</div>");
- _div.on("click.test", _sub(i));
- $("body").append(_div);
- }
- }
- $(document).ready(function () {
- f();
- });
- 20-Apr-2012 04:09 AM
- Forum: Getting Started
I am developing reusable custom components specific to my clients.jquery plugin pattern is followed in the development.Simple example below.- (function ($) {var methods = {init: function (options) {},add: function () {},delete: function () {}};$.fn.ns_contactsView = function (method) {// Method calling logicif (methods[method]) {return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));} else if (typeof method === 'object' || !method) {return methods.init.apply(this, arguments);} else {$.error('Method ' + method + ' does not exist on ns_contactsView ');}};})(jQuery);
this will be used as- $("#divid").ns_contactsView({contacts:jsonData})
These are very specific to a particular industry, which will be used only by my clients.Data input are in json format.All are cross browser compatible.Themable...My question is whats the right term to call these components....- developing components (don't think its right to call them plugin).Saw different patterns all describing about only one component/plugin.These components use jquery core.And its very much custom components released to use by specific clients.Assume I have 2 components comp1 & comp2.Pattern One
- //component1
- (function ($) {
- var methods = {
- init: function (options) {
- var _this = this;
- var _options = { //defaults
- }
- if (options) {
- $.extend(_options, options);
- }
- _privateForComp1();
- },
- publicMethod: function () {}
- };
- //private for Comp1
- var _privateForComp1 = function () {}
- $.fn.Comp1 = function (method) {
- // Method calling logic
- if (methods[method]) {
- return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
- } else if (typeof method === 'object' || !method) {
- return methods.init.apply(this, arguments);
- } else {
- $.error('Method ' + method + ' does not exist on Comp1');
- }
- };
- })(jQuery);
- //component2
- (function ($) {
- var methods = {
- init: function (options) {
- var _this = this;
- var _options = { //defaults
- }
- if (options) {
- $.extend(_options, options);
- }
- _privateForComp2();
- },
- publicMethod: function () {}
- };
- //private for tab
- var _privateForComp2 = function () {}
- $.fn.Comp2 = function (method) {
- // Method calling logic
- if (methods[method]) {
- return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
- } else if (typeof method === 'object' || !method) {
- return methods.init.apply(this, arguments);
- } else {
- $.error('Method ' + method + ' does not exist on Comp2');
- }
- };
- })(jQuery);
Pattern Two- (function ($) {
- $.fn.Comp1 = function (tabOptions) {
- // support mutltiple elements
- if (this.length > 1) {
- this.each(function () {
- $(this).comp1(tabOptions)
- });
- return this;
- }
- }
- })(jQuery);
- (function ($) {
- $.fn.Comp2 = function (tabOptions) {
- // support mutltiple elements
- if (this.length > 1) {
- this.each(function () {
- $(this).comp2(tabOptions)
- });
- return this;
- }
- }
- })(jQuery);
I am not worried about chaining...So these components can return object which contains public methods as below.- (function ($) {
- var methods = {
- init: function (options) {
- var _this = this;
- var _options = { //defaults
- }
- if (options) {
- $.extend(_options, options);
- }
- _privateForComp1();
- return {
- publicMethod: function () {}
- }
- }
- };
- //private for Comp1
- var _privateForComp1 = function () {}
- $.fn.Comp1 = function (method) {
- // Method calling logic
- if (methods[method]) {
- return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
- } else if (typeof method === 'object' || !method) {
- return methods.init.apply(this, arguments);
- } else {
- $.error('Method ' + method + ' does not exist on Comp1');
- }
- };
- })(jQuery);
jQueryUI is using $.widget as below- (function ($) {
- $.widget("ui.menu", {
- _create: function () {
- this.refresh();
- },
- refresh: function () {},
- activate: function (event, item) {},
- deactivate: function () {}
- // TODO merge with previousPage
- nextPage: function (event) {},
- // TODO merge with nextPage
- previousPage: function (event) {},
- hasScroll: function () {
- return this.element.height() < this.element[$.fn.prop ? "prop" : "attr"]("scrollHeight");
- },
- select: function (event) {
- this._trigger("selected", event, {
- item: this.active
- });
- }
- });
- }(jQuery));
My question is which is the best approach to develop components/widgets which will be used by specific clients only.Assuming all components in one single js file.- I am developing some custom jquery plugins which may be distributed to some third party developers to use.So want to know is there any tool available to generate documentation from comments.I know ext-doc, JsDoc ...anything specific for plugins?
- new Date("2012-03-09T16:03:48.16+00:00")is NaN for IE and a date object in other browsers....is IE returning as per standard? or other browsers are right...whats best way to tackle this.in w3schools I can see belowvar today = new Date()
var d1 = new Date("October 13, 1975 11:13:00")
var d2 = new Date(79,5,24)
var d3 = new Date(79,5,24,11,33,0)- alert(1.11 + 0.01) gives 1.12
- alert(1.12 + 0.01) must idealy give 1.13
- but all browsers are giving me 1.1300000000000001
- alert(1.13 + 0.01) gives 1.14
- I tried calculators, 1.12 + 0.01 = 1.13
Edit: doing some googling shows this is reported and something to do with"standard IEEE double-precision arithmetic " which I dont understand clearly....- Using jquery 1.7.1I know there is native javascript swapNode method.....is there swapNode in jQuery. Which will be more cross browser compatible...Ed: adding below code.
- $("._parent").children().on("click", function (event) {
- var _emptyClone = $("._empty").clone();
- $("._empty").replaceWith($(this).clone());
- $(this).replaceWith(_emptyClone);
- });
- <div class="_parent"><div class="_child">child 1</div><div class="_child">child 2</div><div class="_child">child 3</div><div class="_empty">empty</div></div>
intention is to retain event listener....tried..$("._empty").replaceWith($(this).clone()).on("click", function (event) {alert("new listener")});I tried live- $("._parent").children().live("click", function (event) {
- var _emptyClone = $("._empty").clone();
- $("._empty").replaceWith($(this).clone())
- $(this).replaceWith(_emptyClone);
- });
- Uncaught Error: Syntax error,
- unrecognized expression: )
- I am trying to resize width of child divs inside a parent div.So that there will not be any horizontal scrollbars.Is there any jquery method to get scroll width of a particular div.
- This should have discussed earlier.
- <!DOCTYPE html>
- <html>
- <head>
- <title>Page Title</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- $("body").find("div").each(function (index) {
- console.log(this); //native html element div.
- //We cannot call jquery methods on this.
- console.log($(this)); //array of jquery objects. //My question is why this is an array.
- //can I get a sample where this arrays length > 1
- console.log($(this)[0]); // native html element div.
- });
- });
- </script>
- </head>
- <body>
- <div>
- <span>Div 1</span>
- </div>
- <div>
- <span>Div2</span>
- </div>
- <div>
- <span>Div 3</span>
- </div>
- </body>
- </html>
$('#foo').bind('click', fnhandler);function fnhandler() { alert('User clicked on "foo."'); }how to know if a handler already attached or not?edit: or do I do unbind and bind every time to avoid multiple.- listening to pagebeforechange event...$(document).bind("pagebeforechange", function ( event , data) {//event is triggered from an anchor tag...//Is it possible to get reference to anchor( or event.srcElement) here});<a href='#somepage' type='button'>or.....A simple sample below if somebody want to try it out...
- <head>
- <title>Main menu</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css"/>
- <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
- <script type="text/javascript">
- $(document).bind("pagebeforechange", function (event, data) {
- if (typeof data.toPage === "string") {
- //event is triggered from an anchor tag...
- //Is it possible to get reference to anchor( or event.srcElement) here
- event.preventDefault();
- }
- });
- </script>
- <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
- </head>
- <body>
- <div data-role="page" id="home">
- <div data-role="header" data-theme="a">
- </div>
- <div data-role="content">
- <ul data-role="listview" data-inset="true">
- <li><a href="#category-items?category=animals">Animals</a></li>
- <li><a href="#category-items?category=colors">Colors</a></li>
- <li><a href="#category-items?category=vehicles">Vehicles</a></li>
- </ul>
- </div>
- </div>
- </body>
- </html>
- In a JQM sample pageI can see variables starting with $.Is it anything to do with jquery's $ or is it just a variable whose name starts with a legal character,ie, '$'
- I am updating content onclick of a button.After updating fixed footer is jumping up a bit..I know there is some issue related to scroll and fixed footers...Below is a sample replication...
- <html>
- <head>
- <title>Main menu</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css"
- />
- <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
- <script type="text/javascript">
- function ContentUpdate() {
- var _page = $.mobile.activePage;
- var _content = _page.find(":jqmData(role=content)");
- _content.children().remove();
- var _nav = $("<div data-role='navbar'> <ul> <li><a href='a.html' class='ui-btn-active'>One</a></li> <li><a href='b.html'>Two</a></li> </ul> </div>");
- _content.append(_nav).trigger('create');
- }
- </script>
- <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
- </head>
- <body>
- <div data-role="page" id="pagina">
- <div data-role="header">
- <h3></h3>
- </div>
- <div data-role="content">
- <div data-role="navbar">
- <a href="#" onclick="ContentUpdate()" data-role="button">ContentUpdate</a>
- </div>
- </div>
- <div data-role="footer" data-position="fixed">
- <h3></h3>
- </div>
- </div>
- </body>
- </html>
- Below sample trying to build a dynamic List.Actual call will be an Ajax. But I used settimeout to replicate the issue.Requirement is to use $.mobile.showPageLoadingMsg before making ajax and hide it after building list.
- <!DOCTYPE html>
- <html>
- <head>
- <title>My Page</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css"
- />
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
- <script>
- $(document).bind("mobileinit", function () {
- $.mobile.ajaxEnabled = true;
- });
- $("#home").live("pageinit", function () {
- $.mobile.loadingMessage = "pagebeforehide Page...";
- $.mobile.showPageLoadingMsg();
- setTimeout("buildUi()", 2000);
- });
- //doing ajax and ui building....
- function buildUi() {
- var $page = $("#home");
- var $header = $page.children(":jqmData(role=header)");
- var $content = $page.children(":jqmData(role=content)");
- var html = "";
- for (var i = 1; i < 6; i++) {
- html += "<li><a href='#child" + i + "'>parent " + i + "</a> </li>";
- }
- $header.find("h1").html("List Header");
- $content.html("<ul data-role='listview' data-inset='true'>" + html + "</ul>");
- $page.page();
- // Enhance the listview we just injected.
- $content.find(":jqmData(role=listview)").listview();
- $.mobile.hidePageLoadingMsg();
- }
- </script>
- <script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
- </head>
- </head>
- <body>
- <div>
- <div id="home" data-role="page" data-url="menuDialog">
- <div data-role='header'>
- <h1>menuDialog</h1>
- </div>
- <div data-role='content'></div>
- </div>
- </div>
- </body>
- </html>
- Working and modifying below sample, to make it dynamic.Above sample got only one level of list.My requirement to have some more level down.So trying to create 'head','header','content' dynamically.But its ending in errorUncaught TypeError: Cannot call method '_trigger' of undefined
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>changePage JSON Sample</title>
- <link rel="stylesheet" href="//code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css">
- <script src="//code.jquery.com/jquery-1.6.4.js"></script>
- <script src="//code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
- <script>
- // Some sample categorized data. This data is in-memory
- // for demonstration purposes, but could be loaded dynamically
- // via ajax.
- var categoryData = {
- animals: {
- name: "Animals",
- description: "All your favorites from aardvarks to zebras.",
- items: [
- {
- name: "Pets",
- },
- {
- name: "Farm Animals",
- },
- {
- name: "Wild Animals",
- }
- ]
- },
- colors: {
- name: "Colors",
- description: "Fresh colors from the magic rainbow.",
- items: [
- {
- name: "Blue",
- },
- {
- name: "Green",
- },
- {
- name: "Orange",
- },
- {
- name: "Purple",
- },
- {
- name: "Red",
- },
- {
- name: "Yellow",
- },
- {
- name: "Violet",
- }
- ]
- },
- vehicles: {
- name: "Vehicles",
- description: "Everything from cars to planes.",
- items: [
- {
- name: "Cars",
- },
- {
- name: "Planes",
- },
- {
- name: "Construction",
- }
- ]
- }
- };
- // Load the data for a specific category, based on
- // the URL passed in. Generate markup for the items in the
- // category, inject it into an embedded page, and then make
- // that page the current active page.
- function showCategory( urlObj, options )
- {
- var html = "<div id='category-items' data-role='page'><div data-role='header'><h1></h1></div><div data-role='content'></div></div>";
- $("#home").insertAfter(html);
- var categoryName = urlObj.hash.replace( /.*category=/, "" ),
- // Get the object that represents the category we
- // are interested in. Note, that at this point we could
- // instead fire off an ajax request to fetch the data, but
- // for the purposes of this sample, it's already in memory.
- category = categoryData[ categoryName ],
- // The pages we use to display our content are already in
- // the DOM. The id of the page we are going to write our
- // content into is specified in the hash before the '?'.
- pageSelector = urlObj.hash.replace( /\?.*$/, "" );
- if ( category ) {
- // Get the page we are going to dump our content into.
- var $page = $( pageSelector ),
- // Get the header for the page.
- $header = $page.children( ":jqmData(role=header)" ),
- // Get the content area element for the page.
- $content = $page.children( ":jqmData(role=content)" ),
- // The markup we are going to inject into the content
- // area of the page.
- markup = "<p>" + category.description + "</p><ul data-role='listview' data-inset='true'>",
- // The array of items for this category.
- cItems = category.items,
- // The number of items in the category.
- numItems = cItems.length;
- // Generate a list item for each item in the category
- // and add it to our markup.
- for ( var i = 0; i < numItems; i++ ) {
- markup += "<li>" + cItems[i].name + "</li>";
- }
- markup += "</ul>";
- // Find the h1 element in our header and inject the name of
- // the category into it.
- $header.find( "h1" ).html( category.name );
- // Inject the category items markup into the content element.
- $content.html( markup );
- // Pages are lazily enhanced. We call page() on the page
- // element to make sure it is always enhanced before we
- // attempt to enhance the listview markup we just injected.
- // Subsequent calls to page() are ignored since a page/widget
- // can only be enhanced once.
- $page.page();
- // Enhance the listview we just injected.
- $content.find( ":jqmData(role=listview)" ).listview();
- // We don't want the data-url of the page we just modified
- // to be the url that shows up in the browser's location field,
- // so set the dataUrl option to the URL for the category
- // we just loaded.
- options.dataUrl = urlObj.href;
- // Now call changePage() and tell it to switch to
- // the page we just modified.
- $.mobile.changePage( $page, options );
- }
- }
- // Listen for any attempts to call changePage().
- $(document).bind( "pagebeforechange", function( e, data ) {
- // We only want to handle changePage() calls where the caller is
- // asking us to load a page by URL.
- if ( typeof data.toPage === "string" ) {
- // We are being asked to load a page by URL, but we only
- // want to handle URLs that request the data for a specific
- // category.
- var u = $.mobile.path.parseUrl( data.toPage ),
- re = /^#category-item/;
- if ( u.hash.search(re) !== -1 ) {
- // We're being asked to display the items for a specific category.
- // Call our internal method that builds the content for the category
- // on the fly based on our in-memory category data structure.
- showCategory( u, data.options );
- // Make sure to tell changePage() we've handled this call so it doesn't
- // have to do anything.
- e.preventDefault();
- }
- }
- });
- </script>
- </head>
- <body>
- <div id="home" data-role="page">
- <div data-role="header"><h1>Categories</h1></div>
- <div data-role="content">
- <h2>Select a Category Below:</h2>
- <ul data-role="listview" data-inset="true">
- <li><a href="#category-items?category=animals">Animals</a></li>
- <li><a href="#category-items?category=colors">Colors</a></li>
- <li><a href="#category-items?category=vehicles">Vehicles</a></li>
- </ul>
- </div>
- </div>
- </body>
- </html>
- Have a html like below.
- <div id="parentDiv">
- <div class="child">child1</div>
- <div class="child">child2</div>
- <div class="child">child3</div>
- <div class="child">child4</div>
- <div class="child">child5</div>
- <div class="child">child6</div>
- <div class="child">child7</div>
- <div class="child">child8</div>
- </div>
doing loop & setting an index to all child.- $("#parentDiv .child").each(function (index) {
- $(this).data("_index", index);
- });
Have a variable- var activeIndex=2;
Is it possible to get div using a combination of id,class and data for selection.Something like- $("#parentDiv .child:data(_index = "+ activeIndex +")");
- //or
- $("#parentDiv .child[_index = "+ activeIndex +"]");
- Looping through div using css class selector.eg:
- $(".listDiv").each(function (index) {
- alert($(this).innerHeight());
- });
some div's are display:noneHow to skip them. InnerHeight gives Hidden div's also.Intention is to calculate total height of visible div's- Below is the code with which I am trying to get vertical scroll bar for accordion panel contents.Accordion div is inside another div whose height is 200px.So requirement is accordion must not take more than 200px and do vertical scroll for specific panel if its more.
-
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function () {
$("#accordion").accordion();
});
</script>
<style>
.content {
height: 200px;
width:200px;
background-color:Yellow;
}
</style>
</head>
<body style="font-size:62.5%;">
<div class='content'>
<div id="accordion">
<h3>
<a href="#">Section 1</a>
</h3>
<div>
<p>Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo
ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.</p>
</div>
<h3>
<a href="#">Section 2</a>
</h3>
<div>
<p>Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit
faucibus urna.</p>
</div>
<h3>
<a href="#">Section 3</a>
</h3>
<div>
<p>Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis.
Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero
ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia
ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.</p>
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>
</div>
<h3>
<a href="#">Section 4</a>
</h3>
<div>
<p>Cras dictum. Pellentesque habitant morbi tristique senectus et netus et
malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus
orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel
est.</p>
<p>Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
inceptos himenaeos.</p>
</div>
</div>
</div>
</body> -
</html>
- «Prev
- Next »
-
Moderate user : John Chacko
© 2012 jQuery Foundation
Sponsored by
and others.



