<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amit kumar on Medium]]></title>
        <description><![CDATA[Stories by Amit kumar on Medium]]></description>
        <link>https://medium.com/@commonid369?source=rss-a1cc84d60c2d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pYplslmgYONZbclH2aGDWA.jpeg</url>
            <title>Stories by Amit kumar on Medium</title>
            <link>https://medium.com/@commonid369?source=rss-a1cc84d60c2d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:45:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@commonid369/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A practical road-map for jQuery]]></title>
            <link>https://medium.com/@commonid369/a-practical-road-map-for-jquery-c08a9b53301e?source=rss-a1cc84d60c2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c08a9b53301e</guid>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[jquery-ui]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[jquery]]></category>
            <category><![CDATA[jquery-plugin]]></category>
            <dc:creator><![CDATA[Amit kumar]]></dc:creator>
            <pubDate>Mon, 13 Jul 2020 18:50:47 GMT</pubDate>
            <atom:updated>2020-07-13T19:49:00.217Z</atom:updated>
            <content:encoded><![CDATA[<p>JQuery basically is a general-purpose library, it’s very popular ,it’s used in a lot of websites and you can go ahead and check out<a href="https://jquery.com/"> </a>JQuery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*qy9YTX8Z5nTRquCg.png" /></figure><h3>What Does JQuery Do?</h3><p>So JQuery allows us to do some very common tasks that we do on web front-end development that is<strong> select items in the Dom change their contents append perpend items into the Dom basically a whole bunch of Dom manipulation tasks like hiding or showing something</strong> hiding a Div showing a button toggling something visibility of something okay so all of these things.</p><p>JQuery reduces the amount of code that we need to write usually like we have to do something like <strong>document.getelementbyid </strong>and do inner text equal to something.</p><p>JQuery reduces all of that stuff for us and apart from that JQuery helps us with a bit of <strong>Ajax </strong>that is <strong>asynchronous JavaScript</strong> and XML that means <strong>that but my website is open my page is open I don’t want to without changing my page</strong> <strong>I want to make a request to the back-end fetch data from the API stuff </strong>like that J Query makes it very easy using two functions called<strong> get and post</strong> .</p><h3>Installing JQuery and Which version?</h3><p>So if you look at the <a href="https://jquery.com/">website</a> there is like they tell you about a brief look at how DOM traversal and manipulation works</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zaOXfOMUCOWqX7k8ya3S1g.png" /><figcaption>DOM traversal and manipulation(explained)</figcaption></figure><p>So you can do something like like this you use this <strong>dollar function which is basically a shorthand for the </strong>JQuery<strong> object.We can see in above image $(“button. continue”).html(“Next Step….”) and the text of the button changes </strong>stuff like that.</p><p>So we’re gonna quickly dive into all that stuff and see how to use JQuery on this website because at the top of the website you will see there is a download button how to download j Query <a href="https://jquery.com/download/">download link </a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8mxJhpvgHIabosAb8OmN8A.png" /></figure><h3>Which version to download compressed production or uncompressed development?</h3><p>You see that there are a lot of ways to download</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*neKFPf5FzoNkFBqP9KB-aw.png" /></figure><p>There is the uncompressed JQuery file and then the compressed version so what we’re gonna do is we really just link to the uncompressed version first because the uncompressed version is big it’s if I just go to the network request</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qVv_hgzII_PWRkTfUOYhHw.png" /><figcaption>Uncompressed j Query file result.</figcaption></figure><p>The uncompressed version of JQuery is about 280.89 KB and it takes like 82.88 KB’s to transfer it over the Internet which means it can take something like 320 milliseconds to transfer this file <strong>but this has all the actual function names and class names all intact but when you are using it in production .</strong></p><p>You prefer to use a smaller version of JQuery which is the compressed version which is <a href="https://code.jquery.com/jquery-3.5.1.min.js">this one</a> here as you can see that all all the code has been all compressed together.</p><p>All the function names,class names all of it has been reduced to single letter names okay so functionality is the same but if you try to debug that if you get some<strong> stack traces in your errors you won’t be really able to understand where there have happened because all the function names error names</strong> they are all reduced to single variable but this is now reduced to like 30 KB so this transfer is a little faster .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qTc6NCDfvKtG2L18SFr-oQ.png" /><figcaption>Compressed version</figcaption></figure><h3>How to use j Query(in code)?</h3><p>We just take a look at how to use j Query so let’s say I have a index.html file and let’s just open this in a live server so if you just open the web console and <strong>if I look at the dollar variable like a dollar and it’s this empty function</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1OXr9-TIJk_PYNfzVqBL9Q.png" /><figcaption>Dollar is a function that exists inside browsers but <strong>this is not J Query right now</strong></figcaption></figure><p>which as such dollar is a function that exists inside browsers but <strong>this is not J Query right now. S</strong>o what I do is I take the j Query <a href="https://code.jquery.com/jquery-3.5.1.min.js">URL </a>the latest version of J Query .</p><p>I’m gonna put that in my index dot HTML right I’m gonna create html5 website put like script src=”<a href="https://code.jquery.com/jquery-3.5.1.js">https://code.jquery.com/jquery-3.5.1.min.js</a>”okay let’s fresh this page if I clicked on it now you will see that</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*SHJs26aNqEpN41GYuHlfYw.png" /></figure><p><strong>Dollar basically reference to the j Query object</strong></p><p>Now okay so when we load j Query into our HTML document then this dollar object it refers to j Query itself now we can use j Query like this as well like write the entire j Query name but it’s shorter to just use the dollar simple so <strong>dollar is a short form for </strong>JQuery<strong> .</strong></p><p>It’s basically the same thing you can try out <strong>dollar equal to equal to </strong>JQuery<strong> and you will see it’s true which means the dollar in j Query actually references to the same object </strong>okay what I will do is select right inside my page create say a Div and hello in my HTML page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/99/1*hcBxVFb5vpYwvIEBZ6Y2Ng.png" /></figure><p>I’m going to write this code around here in my page dollar and I’m gonna write Div if I just write like this it’s going to select this div so in this dollar function if I pass a string and whatever <strong>I pass here as a string it works like a CSS selector so if it’s name of a HTML element like div </strong>right here it is able to select that div .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*BdKjXNVYGEBoyeVe1FHrHA.png" /><figcaption><strong>Works like a CSS selector</strong></figcaption></figure><p>And if I write dot HTML and change the text to hello world like this see it exchanges right .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*TkvUOzFUM_eEFeLH5c55tw.png" /><figcaption>Change the text to hello world</figcaption></figure><p>So that’s like the very basics of how to get started with JQuery you can use the<strong> dollar function to select elements from the Dom </strong>and then you could start changing their data inside them.</p><p>There are 5 topic which are there in basics of JQuery</p><p>jQuery 01: Introduction to Jquery<br>jQuery 02: Selectors<br>jQuery 03: Changing attributes and styles<br>jQuery 04: Appending and Prepending<br>jQuery 05: AJAX Operations</p><p><strong>In this article i have covered 1st topic and rest we will cover in next article.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c08a9b53301e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>