Thursday, October 4, 2012

jQuery Interview Questions

What are some benefits of using jQuery?

You should be able to vocalize the benefits of jQuery. It is lightweight, open source, has lots of plugins, and jQuery has a great community and user support. It is incredibly good at matching CSS selectors, it supports chains of actions, and it has many useful AJAX methods. These are just some basic reasons. You could also add that jQuery fixes many JavaScript cross-browser issues.

Name some jQuery methods.

There are so many, so you definitely should know some from your memory. How about hide(), show(), or toggle()


What is jQuery ?
It’s very on line diet simple but most valuable Question on jQuery means jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, animating, event handling, and Ajax interactions for rapid web development. jQuery is designed to change the Buy eulexin online way that you write JavaScript. jQuery is build library for javascript no need to write your own functions or script jQuery all ready done for you

change the URL for a Hyperlink using jQuery

Check or Uncheck All Checkboxes using jquery
$(‘#checkall’).click(function(){
$(“input[@name='Items']:checked”).attr(‘checked’,true);
Buy ditropan style=”color: #009900;”>});
$(‘#uncheckall’).click(function(){
$(“input[@name='Items']:checked”).attr(‘checked’,false);});

fetch the values of selected checkbox array using JQuery
How we can apply css in multiple Selectors in jquery.
How we can modify the css class in jquery.
How can we apply css in div using jquery.
get the value of selected option in jquery
check/uncheck an input in jquery?
disable/enable an element in jquery?
How do I determine the state of a toggled element?
How do I test whether an element exists?
How do I test whether an element has a particular class?
How can we repair a MySQL table?

Strict DTD vs Transitional DTD


Strict DTD vs Transitional DTD

Contents

 [hide]

Introduction

There are currently a large number of pages which are are marked as Transitional rather than Strict HTML 4.01. The single biggest reason for this is to allow use of the target tag. Target="_ blank" is used extensively to open a new browser window in many pages with e-mail and website links. This is not included in Strict HTML 4.01 as the general opinion was that the user should decide whenever a new browser window is opened.
So the question is do we adhere to Strict HTML 4.01 and not open any new browser windows or allow pages to open new windows and mark these at Transitional HTML 4.01? We could also use javascript to open a new windows but that is sort of a run around the intent of the standard. ref: http://wiki.pcgen.org/Strict_DTD_vs_Transitional_DTD

Elements that are not allowed in Strict DOCTYPEs (ref: http://24ways.org/2005/transitional-vs-strict-markup)

  • center
  • font
  • iframe
  • strike
  • u

Attributes not allowed in Strict DOCTYPEs

  • align (allowed on elements related to tables: colcolgrouptbodytd,tfootththead, and tr)
  • language
  • background
  • bgcolor
  • border (allowed on table)
  • height (allowed on img and object)
  • hspace
  • name (allowed in HTML 4.01 Strict, not allowed on form and img in XHTML 1.0 Strict)
  • noshade
  • nowrap
  • target
  • textlinkvlink, and alink
  • vspace
  • width (allowed on imgobjecttablecol, and colgroup)