{"id":26425,"date":"2014-04-29T12:57:49","date_gmt":"2014-04-29T09:57:49","guid":{"rendered":"http:\/\/blog.superhosting.bg\/en\/?p=26425"},"modified":"2022-04-02T11:37:02","modified_gmt":"2022-04-02T08:37:02","slug":"jquery","status":"publish","type":"post","link":"https:\/\/blog.superhosting.bg\/en\/jquery.html","title":{"rendered":"What is jQuery and What Is It Used For?"},"content":{"rendered":"\n<p>Nowadays, the development of web technologies is strongly influenced by the constantly growing requirements and expectations of web users. Having an interactive, impressive and trendy website is a must for successful online presence.<\/p>\n\n\n\n<p>During the early years of the Internet the information was mainly presented as plain text. Today, however, users demand more \u2013 images, animations, audio and video, online chats, infographics, slides, etc.<\/p>\n\n\n\n<p>One of the web technologies by which you can make your website look trendy and create exceptional user experience is <strong>jQuery<\/strong>.<\/p>\n\n\n\n<p>The idea behind jQuery is reducing the amount of JavaScript code while achieving better results. jQuery adds new features to JavaScript. jQuery allows the easy creation of interactive navigation menus, sliders, galleries and many more.<\/p>\n\n\n\n<p>If we compare visualization of information online to a dancer, we can say that at the dawn of Internet he only had to perform simple steps for beginners, but nowadays he must participate in challenging tango and salsa dancing competitions.<span style=\"line-height: 1.5;\"> \ud83d\ude42<\/span><\/p>\n\n\n\n<p>Before introducing you to jQuery and its power we will first have a brief look at its base \u2013 JavaScript.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is JavaScript?<\/h2>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/JavaScript\" target=\"_blank\" rel=\"noopener\"><strong>JavaScript<\/strong><\/a> is a scripting programming language which makes a static web page dynamic.<\/p>\n\n\n\n<p>JavaScript is used not only for creating interactive web pages, but also for developing games and scripts that are executed by the server. One of the technologies used is <strong>Node.js.<\/strong><\/p>\n\n\n\n<p>Have a look at the new blog platform&nbsp;<strong>Ghost<\/strong> powered by Node.js.<\/p>\n\n\n\n<p>The dynamics of a certain website may consist in changing the content which is displayed on the webpage when a user performs an action.<\/p>\n\n\n\n<p>JavaScript was developed by <a href=\"https:\/\/en.wikipedia.org\/wiki\/Brendan_Eich\" target=\"_blank\" rel=\"noopener\">Brendan Eich.<\/a>He is a co-founder of the <strong><a href=\"https:\/\/mozilla.org\/\" target=\"_blank\" rel=\"noopener\">Mozilla project<\/a><\/strong> as <a href=\"https:\/\/blog.mozilla.org\/blog\/2014\/04\/03\/brendan-eich-steps-down-as-mozilla-ceo\" target=\"_blank\" rel=\"noopener\">until recently<\/a> he was also its CEO.<\/p>\n\n\n\n<p>In 1995 the JavaScript web technology <a href=\"https:\/\/en.wikipedia.org\/wiki\/JavaScript#History\" target=\"_blank\" rel=\"noopener\">first appeared in the Netscape Navigator 2.0 browser<\/a>.<\/p>\n\n\n\n<p>When JavaScript is enabled in the browser the user can display and manage dynamic web content.<\/p>\n\n\n\n<p>Normally, JavaScript is executed in the browser by files containing JavaScript code.<\/p>\n\n\n\n<p>There are other web technologies such as Flash, Silverlight, etc. which are used for making a website dynamic, but JavaScript <a href=\"https:\/\/w3techs.com\/technologies\/overview\/client_side_language\/all\" target=\"_blank\" rel=\"noopener\">is still the most preferred one<\/a> among developers.<\/p>\n\n\n\n<p>About <a href=\"https:\/\/w3techs.com\/technologies\/details\/cp-javascript\/all\/all\" target=\"_blank\" rel=\"noopener\">87% of the most popular 10 million websites <\/a>on the web are using JavaScript.\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Libraries<\/h2>\n\n\n\n<p>Javascript library is a pre-written JavaScript code. It can be used when it&#8217;s necessary to add a certain functionality to the website. Instead of starting from scratch, a previously created library which offers this functionality can be used.<\/p>\n\n\n\n<p>Libraries reduce the time necessary for a web project development.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is&nbsp;jQuery?<\/h2>\n\n\n\n<p>\u200b<a href=\"https:\/\/en.wikipedia.org\/wiki\/JQuery\" target=\"_blank\" rel=\"noopener\"><strong>jQuery<\/strong><\/a> is one of the most popular and widely used JavaScript libraries. It was developed by <a href=\"https:\/\/en.wikipedia.org\/wiki\/John_Resig\" target=\"_blank\" rel=\"noopener\">John Resig <\/a>and officially released on the web in 2006.<\/p>\n\n\n\n<p>The library is designed to facilitate and simplify writing JavaScript code, while it is flexible and provides options for adding plugins.<\/p>\n\n\n\n<p>The library is <a href=\"http:\/\/jquery.com\/browser-support\" target=\"_blank\" rel=\"noopener\">supported by all contemporary browsers.<\/a><\/p>\n\n\n\n<p>For developing applications and websites for mobile devices, you can use&nbsp;<strong><a href=\"https:\/\/jquerymobile.com\/\" target=\"_blank\" rel=\"noopener\">jQuery Mobile<\/a><\/strong>. The jQuery mobile version <a href=\"http:\/\/jquerymobile.com\/gbs\/1.4\" target=\"_blank\" rel=\"noopener\">is supported by multiple mobile platforms<\/a>.<\/p>\n\n\n\n<p>jQuery Mobile is also used for the <strong>webmail client Horde<\/strong>.<\/p>\n\n\n\n<p><strong>Some of the advantages of the specially developed jQuery mobile version are:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>It is widely supported by mobile devices and web browsers. With jQuery Mobile it is almost certain that anyone can access your website through their mobile devices. Thanks to some of the jQuery Mobile improvements now a mobile device which cannot process CSS and Ajax can handle a web document with the most basic HTML elements.<\/li><li>Web page elements such as registration forms, radio buttons and sliders are now available for touchscreen devices. It is possible to select a single checkbox without zooming the page in order to tick the desired field.<\/li><li>Responsive <a href=\"https:\/\/de.wikipedia.org\/wiki\/Responsive_Webdesign\" target=\"_blank\" rel=\"noopener\">(adaptive) design<\/a>. All of the website elements like tables and texts are designed in a flexible way so that they are perfectly displayed on different mobile device resolutions.<\/li><\/ul>\n\n\n\n<p>Examples for jQuery Mobile elements:<\/p>\n\n\n\n<p>Transition effects<br><a href=\"http:\/\/view.jquerymobile.com\/master\/demos\/transitions\" target=\"_blank\" rel=\"noopener\">http:\/\/view.jquerymobile.com\/master\/demos\/transitions<\/a><\/p>\n\n\n\n<p>Forms: fields, menus, radio buttons, etc.<br><a href=\"http:\/\/view.jquerymobile.com\/master\/demos\/forms-gallery\" target=\"_blank\" rel=\"noopener\">http:\/\/view.jquerymobile.com\/master\/demos\/forms-gallery<\/a><\/p>\n\n\n\n<p>Mobile design themes<br><a href=\"http:\/\/view.jquerymobile.com\/master\/demos\/theme-classic\" target=\"_blank\" rel=\"noopener\">http:\/\/view.jquerymobile.com\/master\/demos\/theme-classic<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">jQuery and the other&nbsp;JavaScript&nbsp;libraries<\/h2>\n\n\n\n<p>There are many other libraries such as MooTools, Prototype, Ext Core, jsPHP, <a href=\"http:\/\/try.buildwinjs.com\/#listview\" target=\"_blank\" rel=\"noopener\">WinJS<\/a>.<\/p>\n\n\n\n<p>When it comes to website designing jQuery stands out among many other web technologies and JavaScript libraries. The percentage of websites around the web which are using this library is huge.<\/p>\n\n\n\n<p>According to <a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/javascript_library\/all\" target=\"_blank\" rel=\"noopener\">statistics<\/a>, jQuery is the most preferred library <a href=\"https:\/\/w3techs.com\/technologies\/overview\/javascript_library\" target=\"_blank\" rel=\"noopener\">over all the other ones<\/a> in a considerable number of websites.<\/p>\n\n\n\n<p>Some of the biggest websites using jQuery are: Microsoft.com, Amazon.com, Mail.ru, Tumblr.com, Yandex.ru, MediaWiki.org.<\/p>\n\n\n\n<p>Some of the jQuery advantages when compared to the other Javascript libraries: It is easy to use, it achieves more functionality with less coding, it is a large library which performs a lot of functions, it has thousands of ready plugins and profound help information, it supports Ajax, etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use&nbsp;jQuery?<\/h2>\n\n\n\n<p>The library is practically one .js file, which can be downloaded from <a href=\"https:\/\/jquery.com\/\" target=\"_blank\" rel=\"noopener\">jQuery<\/a><a href=\"https:\/\/jquery.com\/\">http:\/\/jquery.com<\/a> website and saved in the web project folder. Then it has to be embedded in the website code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;head&gt;\n&lt;script type=\"text\/javascript\" src=\"jquery.min.js\"&gt;&lt;\/script&gt;\n&lt;\/head&gt;<\/code><\/pre>\n\n\n\n<p>Or it can be directly embedded in the website with a .js file link. You can see the link here:&nbsp;<a href=\"https:\/\/developers.google.com\/speed\/libraries\" target=\"_blank\" rel=\"noopener\">https:\/\/developers.google.com\/speed\/libraries<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code lang:default decode:true\"><code>&lt;head&gt;\n&lt;script src=\"\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.11.0\/jquery.min.js\"&gt;&lt;\/script&gt;\n&lt;\/head&gt;<\/code><\/pre>\n\n\n\n<p><strong>How jQuery works<\/strong>: <a href=\"https:\/\/learn.jquery.com\/about-jquery\/how-jquery-works\/\" target=\"_blank\" rel=\"noopener\">http:\/\/learn.jquery.com\/about-jquery\/how-jquery-works<\/a><\/p>\n\n\n\n<p>If you are now starting to use jQuery, do not miss the interactive game tutorial on:&nbsp;<a href=\"https:\/\/learn.jquery.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/learn.jquery.com<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">jQuery Plugins<\/h2>\n\n\n\n<p>The plugins expand the options of the jQuery library. There are plugins, developed by the jQuery team or by other, independent developers.<\/p>\n\n\n\n<p>With those plugins you can add different features and extras to your website or parts of it. Some of the most popular features are: forms, animations, image sliders, responsive design, etc.<\/p>\n\n\n\n<p><strong>Official plugin collection:<\/strong><a href=\"https:\/\/plugins.jquery.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/plugins.jquery.com<\/a><\/p>\n\n\n\n<p>When you are choosing a suitable plugin, pay attention whether there is profound help information for it and if there is support or contact with the developer offered.<\/p>\n\n\n\n<p>The plugins are also embedded in the website, just like the jQuery library. You first have to download the file, save it in a folder and then embed it. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code lang:default decode:true\"><code>&lt;head&gt;\n&lt;script type=\"text\/javascript\" src=\"jquery.min.js\"&gt;&lt;\/script&gt;\n&lt;script type=\"text\/javascript\" src=\"plugins.jquery.js\"&gt;&lt;\/script&gt;\n&lt;\/head&gt;<\/code><\/pre>\n\n\n\n<p><strong>Some of the most impressive plugins<\/strong><\/p>\n\n\n\n<p><em>Our team spent most of the time ordering elements<\/em><\/p>\n\n\n\n<p>Slick \u2013 slider<br><a href=\"https:\/\/plugins.jquery.com\/slick\/\" target=\"_blank\" rel=\"noopener\">https:\/\/plugins.jquery.com\/slick<\/a> (<a href=\"http:\/\/kenwheeler.github.io\/slick\/\" target=\"_blank\" rel=\"noopener\">kenwheeler.github.io\/slick<\/a>)<\/p>\n\n\n\n<p>Color picker sliders<br><a href=\"https:\/\/www.virtuosoft.eu\/code\/jquery-colorpickersliders\/\" target=\"_blank\" rel=\"noopener\">virtuosoft.eu\/code\/jquery-colorpickersliders<\/a><\/p>\n\n\n\n<p>Sorting, filtering and categorizing elements, etc.<br><a href=\"https:\/\/vestride.github.io\/Shuffle\/\" target=\"_blank\" rel=\"noopener\">vestride.github.io\/Shuffle<\/a><\/p>\n\n\n\n<p>Animated filtering and sorting elements<br>https:\/\/mixitup.kunkalabs.com<\/p>\n\n\n\n<p>Image sliders<br><a href=\"https:\/\/plugins.jquery.com\/WOWSlider\/\" target=\"_blank\" rel=\"noopener\">plugins.jquery.com\/WOWSlider\/<\/a><\/p>\n\n\n\n<p>Tooltips<br><a href=\"http:\/\/amsul.ca\/shadow-ui\/demos\/tooltip\/\" target=\"_blank\" rel=\"noopener\">amsul.ca\/shadow-ui\/demos\/tooltip<\/a><\/p>\n\n\n\n<p id=\"boxp10mb12eee\">Do you use jQuery for your web projects? Which effects do you fancy the most?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>jQuery adds new features to JavaScript. jQuery allows the easy creation of interactive navigation menus, sliders, galleries and many more.<\/p>\n","protected":false},"author":16,"featured_media":62182,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[18,31],"tags":[],"class_list":{"0":"post-26425","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-superhosting-news","8":"category-superhosting-technology"},"aioseo_notices":[],"modified_by":"\u041c\u0430\u0434\u043b\u0435\u043d\u0430 \u041c\u0435\u0442\u043e\u0434\u0438\u0435\u0432\u0430","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/26425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/comments?post=26425"}],"version-history":[{"count":25,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/26425\/revisions"}],"predecessor-version":[{"id":65594,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/26425\/revisions\/65594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/media\/62182"}],"wp:attachment":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/media?parent=26425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/categories?post=26425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/tags?post=26425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}