<?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-check-textbox-empty &#8211; Extreme Web Designs</title>
	<atom:link href="https://theextremewebdesigns.com/blog/tag/jquery-check-textbox-empty/feed/" rel="self" type="application/rss+xml" />
	<link>https://theextremewebdesigns.com/blog</link>
	<description>Web Design and Web Development</description>
	<lastBuildDate>Wed, 13 Jun 2012 04:04:20 +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>Check if Textbox is Empty using jQuery Examples</title>
		<link>https://theextremewebdesigns.com/blog/jquery-textbox-empty-how-to-check-if-textbox-is-empty-using-jquery/</link>
					<comments>https://theextremewebdesigns.com/blog/jquery-textbox-empty-how-to-check-if-textbox-is-empty-using-jquery/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 13 Jun 2012 04:04:20 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jquery-check-textbox-empty]]></category>
		<category><![CDATA[jquery-demos]]></category>
		<category><![CDATA[jquery-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=911</guid>

					<description><![CDATA[Have you ever wondered how to check if Textbox is Empty using jQuery? In this article, I am going to share a very easy way that you can use to check if Textbox is Empty using jQuery. How to check if Textbox is Empty using jQuery For this example, I am assuming that we have [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Have you ever wondered <strong><em>how to check if Textbox is Empty using jQuery</em>?</strong> In this article, I am going to share a very easy way that you can use to check if Textbox is Empty using jQuery.<span id="more-911"></span></p>
<h2>How to check if Textbox is Empty using jQuery</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=911" 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>For this example, I am assuming that we have a Textbox in a form and we need to check if this textbox is empty or not when the &#8220;Check&#8221; button is clicked. The following is the complete source code:</p>
<h3>Example: Use jQuery to check if textbox is empty</h3>
<pre class="lang:xhtml decode:true">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;jQuery Textbox Empty | How to check if Textbox is Empty using jQuery&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;form name="form1" method="post" action=""&gt;
&lt;label for="city"&gt;City:&lt;/label&gt;
&lt;input type="text" name="city" id="city"&gt;
&lt;/form&gt;
&lt;button id="check"&gt;Check&lt;/button&gt;

&lt;script type="text/javascript"&gt;

$('#check').click(function() {

if ( $('#city').val() == '' )
{
	alert('Empty!!!');
}
else
{
	alert('Contains: ' + $('#city').val() );
}

});

&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Once you run the above code and click the &#8220;Check&#8221; button, the page will alert &#8220;Empty!!!&#8221;. If you enter something in it and then click the button, it will show the value you entered.</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=911" 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 <em><strong>check if textbox is empty using jQuery</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/jquery-textbox-empty-how-to-check-if-textbox-is-empty-using-jquery/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">911</post-id>	</item>
	</channel>
</rss>
