?
Solved

Jquery ASP.net

Posted on 2014-04-08
3
Medium Priority
?
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 1000 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 1000 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Suggested Courses

777 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