Interview Questions for Business Analysts and Systems Analysts


Recent Interview Questions | Search | Subscribe (RSS)

?
INTERVIEW QUESTION:

What is jQuery?

Posted by Chris Adams

Article Rating // 15056 Views // 0 Additional Answers & Comments

Categories: Systems Analysis

ANSWER

As business and systems analysts sometimes it takes us a bit longer to learn about the latest technology available to developers.  It is, however, advantageous for us to learn about the technological capabilities that are available to them, at least at a high level.

jQuery is a lightweight Javascript library  containing functions that can be leveraged easily by a developer to quickly created dynamic webpage features and functionality.  jQuery gives the developer the ability to:

  • Select elements within an HTML page

  • Run jQuery functions to manipulate the HTML, changing how the webpage appears.

  • Run jQuery functions to manipulate the CSS sytles

Before adding any jQuery scripts to the webpage the developer must first reference the jQuery library in the <head> tag of the HTML page using something like the following.

<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
</head>
 
Then jQuery scripts that should run on the page can be added.

<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
<script type="text/javascript">
$(document).ready(function(){
  $("p.testclass").click(function(){
    $(this).fadeOut(4000);
  });
});</script>
</head>

<body>
<p class="testclass">This is paragraph 1.</p>
<p> This is paragraph 2.</p>
</body>
</html>

This script would wait until the document is fully loaded and apply a jQuery function to the paragraph with class=testclass so that when the paragraph text is clicked the paragraph will slowly fade away or disappear.

HTML and CSS elements can be selected in 1 of 4 ways:

$("p") - selects all <p> elements
$("p.testclass") - selects all <p> elements with class="testclass"
$("p#testid") - selects the first <p> element with id="testid"
$(this) - selects the current HTML element

There are a large number of jQuery functions that can be ran on HTML and CSS elements once they are selected.

RATE THIS TOPIC

ADDITIONAL ANSWERS / COMMENTS

Only registered users may post comments.

Do your homework prior to the business analysis interview!

Having an idea of the type of questions you might be asked during a business analyst interview will not only give you confidence but it will also help you to formulate your thoughts and to be better prepared to answer the interview questions you might get during the interview for a business analyst position.  Of course, just memorizing a list of business analyst interview questions will not make you a great business analyst but it might just help you get that next job.

 



Upcoming Live Webinars

 




Select ModernAnalyst Content

Register | Login

Copyright 2006-2024 by Modern Analyst Media LLC