Question
Explain chaining in jquery?

Answers

Chaining is one of the most powerful feature of jQuery. In jQuery, Chaining means to connect multiple functions, events on selectors. It makes your code short and easy to manage and it gives better performance. The chain starts from left to right. So left most will be called first and so on.
$(document).ready(function(){$('#dvContent').addClass('dummy');$('#dvContent').css('color', 'red');$('#dvContent').fadeIn('slow');});?
The above jQuery code sample can be re-written using chaining.
?$(document).ready(function(){$('#dvContent').addClass('dummy').css('color', 'red').fadeIn('slow'); });?
Not only functions or methods, chaining also works with events in jQuery   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q If you could learn any language fluently what would it be?
  • Q How do I replace every character in a file with a comma?
  • Q Explain CodeIgniter architecture.
  • Q Can you store multiple data types in system.array?
  • Q Imagine that we are running an Apache reverse proxy server and one of the servers we are proxy for is a Windows IIS server. What does the log entry suggest has happened?
  • Q Square side 7 cm. Find the area 4 equal circles of the circle lying drawn at the…
  • Q When is pass used for?
  • Q What is RFLP
  • Q Which Class extend the zend Model?
  • Q An IS auditor performing a review of the EFT operations of a retailing company would verify that the customers credit limit is checked before funds are transferred by reviewing the EFT: A. system's interface. B. switch facility. C. personal identification number generating procedure. D. operation backup procedures.
  • Q How much protein a working woman must intake everyday?