Solved

Jquery ASP.net

Posted on 2014-04-08
3
189 Views
Last Modified: 2014-04-25
Can someone tell me what jquery and how it qworks?

How is it used in relation to Asp.Net?

Code example maybe?

What versions in VS can it be used?
0
Comment
Question by:Idarac
3 Comments
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 250 total points
ID: 39987488
...what jquery...
The home page will tell you:

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.

...and how it qworks?
I'll have to defer to someone more Javascript proficient to describe how it works.

How is it used in relation to Asp.Net?
It's use in ASP.NET is to aid you in working with Javascript more easily, and without having to know all of the nuances of each browser's Javascript implementation.

Code example maybe?
That's a very general question. I'm sure you can find tons of JQuery samples online.

What versions in VS can it be used?
Since it's really just a Javascript library, it is not tied to any version of Visual Studio. You can use it anywhere...even Notepad.
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 250 total points
ID: 39987600
jQuery is a fast

Simple Javascript to hide a <div> tag :
document.getElementById("my_div_ID").style.display = "none";

Open in new window

jQuery :
$("#my_div_ID").hide();

Open in new window


small :
jQuery version 2.1 size is less than 82KB

feature-rich :
Here an animation of the size and opacity :
$("#my_div_ID").animate({height:10, opacity:.5}, callMeFunctionWhenDone);

Open in new window


...and how it qworks?
you embed the script in the head section of your page, that's all, you're ready to play :
Use << $ >> or << jQuery >> to use it
<script src="/path/to/jquery.js"></script>
<script>
  jQuery(function($) {
         function callback() { alert("div resized and opacity changed!"); };
         $("#my_div_ID").animate({height:10, opacity:.5}, callback);
  });
</script>

Open in new window

0
 
LVL 1

Expert Comment

by:kaushik_gajera2002
ID: 40021936
Jquery is client side scripting and it's very easy to use.
read below tutorial that will help you to understand  jquery and how to use it
http://www.jquery-tutorial.net/
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question