SUBBUINDESIGN Blog

How to use jQuery setTimeout function

The Basic syntax for setTimeout function is, 1 setTimeout(function() { 2       // Do something after 2 seconds 3 }, 2000); The setTimeout function takes the times in miliseconds. And the block can contain either yourjQuery code, or...

Writing your first jQuery Mobile app

Before we begin, its important to know “What is jQuery Mobile”? Well, jQuery mobile is a framework created for making platform independent mobile applications. It is built using HTML5, CSS3, and the very popular jQuery...

Creating Dialog Box in jQuery Mobile – Part 1

Let’s begin Any page in jQuery mobile can be created as dialog box. All you need to do is to apply data-rel=”dialog” attribute to the to the page anchor link and jQuery mobile will do the...

Latest jQuery interview questions and answers 04

Q31. How do you check if an element is empty? Ans: There are 2 ways to check if element is empty or not. We can check using “:empty” selector. 1 $(document).ready(function(){ 2     if ($(‘#element’).is(‘:empty’)){ 3...

Latest jQuery interview questions and answers 01

Below is the list of latest and updated jQuery interview questions and their answers for freshers as well as experienced users. These interview question covers latest version of jQuery which is jQuery 2.0. These interview...

When can you use jQuery?

apply CSS call functions on events traverse the documents manipulation purpose and to add effects too.

Explain how jQuery Works?

<html> <head> <script type=”text/javascript” src=”jquery.js”></script> <script type=”text/javascript”> // You can write the code here </script> </head> <body> <a href=”http://www.globalguideline.com/”>Global GuideLine</a> </body> </html>

Why is jQuery better than JavaScript?

Ans. * jQuery is great library for developing ajax based application. * It helps the programmers to keep code simple and concise and reusable. * jQuery library simplifies the process of traversal of HTML DOM...

what is jQuery connect?

Ans. It is a jquery plugin which enables us to connect a function to another function. It is like assigning a handler for another function. This situation happens when you are using any javascript plugins...

Can you give me a brief history of your programming days?

Ans. Although it’s a bit embarrassing, my first programming experience was trying to build a customized and skinnable mediaplayer with Visual Basic 6. This probably was around 1999 or so, and although the media player...

How to use jQuery library in our ASP.Net project?

Ans. Download the latest jQuery library from jQuery.com and include the reference to the jQuery library file in our ASPX page. <script src=”_scripts/jQuery-1.2.6.js” type=”text/javascript”></script> <script language=”javascript”> $(document).ready(function() { alert(‘test’); }); </script>

Delaying the Transition

Going back to our example, transitions can be delayed from the moment the trigger happens on screen. For example, let’s say we wanted the background transition to happen half a second after the link...

Removed Elements from HTML5

The following HTML 4.01 elements are removed from HTML5: <acronym> <applet> <basefont> <big> <center> <dir> <font> <frame> <frameset> <noframes> <strike> <tt>

HTML5 Browser Support Tips

Of course a big question is can and should you use these tags now. What kind of support exists in browsers for these new semantic tags? Not all browsers are supporting these tags, however you...

The Difference Between Sections and Articles

One of the things I’ve found confusing about these new structural tags is the difference between a section and an article and when to use each. The answer seems to be a matter of...

Article Element in HTML5

The article element represents a section of content that forms an independent part of a document or site. It represents a section of self-contained content. Can the content be syndicated as an rss feed?...

NAV Element in HTML5

The nav element represents a section of a document that links to other documents or to parts within the document itself. It’s a section of navigational links. It’s intended for major navigational information like a sitewide navigation...

Aside Element in HTML5

The aside element represents content that is tangentially related to the main text of a document. It aligns with what we think of as a sidebar. As with the other structural tags its not...

Footer Element in HTML5

Similar to the header, the footer element represents the footer for a section or document. Like the header tag there can be multiple footer tags in an html5 document. A footer is more than...

Header Element in HTML5

The header element represents the header of a section. It’s meant to be used as a container for a group of introductory content or set of navigational links. While most websites currently have one...

Section Element in HTML5

The section element represents a section of a document, typically one that includes a heading. It’s used to enclose a thematic grouping of content. It’s similar to a div though it carries more semantic meaning since...

Progress Element in HTML5

The progress tag is used to markup values in the process of changing Your download is <progress>55%</progress> complete It has 3 attributes value min max By itself it’s probably not that interesting, however when combined with...

Meter Element in HTML5

The meter tag is used to markup measurements, specifically a scalar measurement within a known range. 1 2 <meter>1 of 10</meter> <meter>2 of 7</meter> It could also be used to represent a fractional value like...

Time Element in HTML5

Time as you would expect is used to markup temporal information. It can be used for dates, times, or combinations of the two. 1 2 3 <time datetime=”14:00″>2pm</time> <time datetime=”2011-07-14″>July 14th, 2011</time> <time datetime=”2011-07-14T14:00″>2pm...

How to Use HTML5 Semantic Elements

HTML5 has several new layers, including a new set of semantic tags. While there is still some debate about whether or not we should be using and styling these tags I think at the very...