<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jQuery &#8211; Extreme Web Designs</title>
	<atom:link href="https://theextremewebdesigns.com/blog/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>https://theextremewebdesigns.com/blog</link>
	<description>Web Design and Web Development</description>
	<lastBuildDate>Mon, 30 Jul 2012 14:44:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>
<site xmlns="com-wordpress:feed-additions:1">156673191</site>	<item>
		<title>jQuery Scroll To Top Of Page Examples</title>
		<link>https://theextremewebdesigns.com/blog/jquery-scroll-to-top-scroll-to-top-of-page-using-jquery/</link>
					<comments>https://theextremewebdesigns.com/blog/jquery-scroll-to-top-scroll-to-top-of-page-using-jquery/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 30 Jul 2012 14:44:32 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jquery-demos]]></category>
		<category><![CDATA[jquery-scroll]]></category>
		<category><![CDATA[jquery-snippets]]></category>
		<category><![CDATA[jquery-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=1084</guid>

					<description><![CDATA[If you ever wondered how to scroll to top of page using jQuery, then here is the perfect snippet for you. In this article, I am going to share two snippets that will let you scroll to top of page and even control the speed at which the scrolling takes place, thus allowing you greater [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If you ever wondered how to scroll to top of page using jQuery, then here is the perfect snippet for you. In this article, I am going to share two snippets that will let you <em><strong>scroll to top of page and even control the speed at which the scrolling takes place</strong></em>, thus allowing you greater control over the whole scrolling process. Read on to find out more about these copy &amp; use snippets!<span id="more-1084"></span></p>
<h2>Examples to Scroll to Top of Page using jQuery</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=1084" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>I am going to show you how you can use <em><strong>jQuery to scroll to top of page</strong></em> very easily, by means of an example. In this example, I am assuming that I have some content as my text, that spans more than one page and a hyperlink at the bottom of the content. I want to be able to click on this hyperlink so that the page automatically scrolls to the top of the page. In order to do this, I am applying a class of &#8220;scroll&#8221; to this hyperlink and adding code to this using jQuery. So here&#8217;s how it&#8217;s done:</p>
<h3>Example: Use jQuery to scroll to top of page and also control its speed (optional)</h3>
<pre class="lang:xhtml decode:true crayon-selected">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;jQuery Scroll to Top of Page Example&lt;/title&gt;
&lt;script type="text/javascript" src="js/jquery-1.8.2.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;

&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;
&lt;p&gt;Some content. &lt;/p&gt;

&lt;p&gt;&lt;a href="#" class="scroll"&gt;Go To Top&lt;/a&gt;&lt;/p&gt;
&lt;script type="text/javascript" language="javascript" &gt;

$(document).ready(function(){

	//Scroll slow
	$(".scroll").click(function() {
		$("html, body").animate({ scrollTop: 0 }, "slow");
		return false;
	});

	//Scroll fast
	$(".scroll").click(function() {
		$("html, body").animate({ scrollTop: 0 }, "fast");
		return false;
	});	

	//Scroll in 1 second - 1000 milliseconds
	$(".scroll").click(function() {
		$("html, body").animate({ scrollTop: 0 }, 1000);
		return false;
	});

	//Scroll in 5 seconds - 5000 milliseconds
	$(".scroll").click(function() {
		$("html, body").animate({ scrollTop: 0 }, 5000);
		return false;
	});

});	
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Each of the code blocks is commented at it&#8217;s beginning, for your easy understanding. <strong>When you try the code above, make sure that you comment all code blocks except the one that you want to test as only the first block of code will be executed because they are all linked to the click event of the same html element</strong>.</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=1084" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>Simple, isn&#8217;t it?</h5>
<p>Do you know of any other ways to use <em><strong>jQuery to </strong><strong><em>scroll to top of page</em></strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/jquery-scroll-to-top-scroll-to-top-of-page-using-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1084</post-id>	</item>
		<item>
		<title>jQuery Center Div Example</title>
		<link>https://theextremewebdesigns.com/blog/jquery-center-div/</link>
					<comments>https://theextremewebdesigns.com/blog/jquery-center-div/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 14 Apr 2012 21:23:01 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=547</guid>

					<description><![CDATA[Love jQuery? Need a quick way to center div in window? In this article I am going to show you how to center div using jQuery. Example to Center Div using jQuery In order to use this, simply apply the .center() method to your element selector and that will center the div. &#60;style type="text/css"&#62; #my_div { [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Love jQuery? Need a quick way to center div in window? In this article I am going to show you<strong> <em>how to center div using jQuery</em></strong>.<span id="more-547"></span></p>
<h2>Example to Center Div using jQuery</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=547" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>In order to use this, simply apply the .center() method to your element selector and that will center the div.</p>
<pre class="lang:xhtml decode:true">&lt;style type="text/css"&gt;
#my_div {
	background-color: #DFF2FF;
	border: 1px solid #06F;
	height: 200px;
	width: 500px;
}
.my_div_2 {
	background-color: #FFCC66;
	border: 1px solid #F90;
	height: 100px;
	width: 300px;
}
&lt;/style&gt;

&lt;div id="my_div"&gt;This is my_div&lt;/div&gt;
&lt;div class="my_div_2"&gt;This is my_div_2&lt;/div&gt;

&lt;script type="text/javascript"&gt;
jQuery.fn.center = function () {
this.css("position","absolute");
this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px");
this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px");
return this;
}

//Call the "center" function on your desired div in the following way.
//Simply replace #my_div with the ID or the class of the div that you want to center.
$('#my_div').center();
$('.my_div_2').center();
&lt;/script&gt;</pre>
<p>When you run the above code, you will notice that the divs are centered in the window when the page loads.</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=547" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>That&#8217;s it!</h5>
<p>Do you know of any other ways to use <em><strong>jQuery to center div</strong></em>? Please share your thoughts below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/jquery-center-div/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">547</post-id>	</item>
		<item>
		<title>jQuery Hide Show Textbox Examples</title>
		<link>https://theextremewebdesigns.com/blog/jquery-hide-show-textbox/</link>
					<comments>https://theextremewebdesigns.com/blog/jquery-hide-show-textbox/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 24 Mar 2012 00:51:41 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jquery-snippets]]></category>
		<category><![CDATA[jquery-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=389</guid>

					<description><![CDATA[Many times it may have happened that you wanted to use jQuery to Hide/Show text boxes when a checkbox is checked or a button is clicked. This article will show you how to use jQuery to Show / Hide Textbox when checkbox is checked. How to Hide  Or Show Textbox using jQuery &#8211; Examples In order to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Many times it may have happened that you wanted to use jQuery to Hide/Show text boxes when a checkbox is checked or a button is clicked. This article will show you how to use <strong><em>jQuery to Show / Hide Textbox when checkbox is checked</em></strong>.<span id="more-389"></span></p>
<h2>How to Hide  Or Show Textbox using jQuery &#8211; Examples</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=389" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>In order to see how to show textbox or hide textbox using jQuery when checkbox is checked, lets assume that we have a textbox and few checkboxes. So here it goes:</p>
<h3>Example: Show / Hide Textbox when checkbox is checked using jQuery</h3>
<pre class="lang:xhtml decode:true crayon-selected">&lt;input type="checkbox" class="hide" /&gt;&lt;input type="text" value="Name" /&gt;&lt;br&gt;
&lt;input type="checkbox" class="hide" /&gt;&lt;input type="text" value="Email" /&gt;&lt;br&gt;
&lt;input type="checkbox" class="hide" checked="checked" /&gt;&lt;input type="text" value="Address" /&gt;&lt;br&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function() {

$('.hide').click(function() {
$(this).next().toggle();
});
$('.hide:checked').next().hide();

});
&lt;/script&gt;</pre>
<p>This third input box is for the Address and it is hidden by default when the page loads. This is achieved by simply marking its &#8220;checked&#8221; attribute as &#8220;checked&#8221;. Just refer to the third input element&#8217;s HTML code to understand this. The corresponding jQuery code to achieve this is:</p>
<pre class="lang:xhtml decode:true">$('.hide:checked').next().hide();</pre>
<p>Don&#8217;t forget to include your own version(preferably latest) of jQuery. Unless you have included a call to the jQuery framework, this demo will not work. Hope this helps.</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=389" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>Your turn!</h5>
<p>Do you know of any other ways to use <strong>jQuery to Show / Hide textbox</strong>? Please feel free to share by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/jquery-hide-show-textbox/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">389</post-id>	</item>
	</channel>
</rss>
