<?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-textarea &#8211; Extreme Web Designs</title>
	<atom:link href="https://theextremewebdesigns.com/blog/tag/jquery-textarea/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 03:59:15 +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 Textarea is Empty using jQuery Examples</title>
		<link>https://theextremewebdesigns.com/blog/jquery-textarea-empty-how-to-check-if-textarea-is-empty-using-jquery/</link>
					<comments>https://theextremewebdesigns.com/blog/jquery-textarea-empty-how-to-check-if-textarea-is-empty-using-jquery/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 13 Jun 2012 03:59:15 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jquery-demos]]></category>
		<category><![CDATA[jquery-textarea]]></category>
		<category><![CDATA[jquery-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=907</guid>

					<description><![CDATA[Have you ever wondered how to check if Textarea is Empty using jQuery? In this article, I am going to share a very easy way that you can use to check if Textarea is Empty using jQuery. How to check if Textarea is Empty using jQuery &#8211; Examples For this example, I am assuming that we [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Have you ever wondered <em><strong>how to check if Textarea is Empty using jQuery</strong></em>? In this article, I am going to share a very easy way that you can use to check if Textarea is Empty using jQuery.<span id="more-907"></span></p>
<h2>How to check if Textarea is Empty 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=907" 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 Textarea in a form and we need to check if this textarea 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 textarea is empty</h3>
<pre class="lang:xhtml decode:true">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;jQuery: Check if Textarea is empty&lt;/title&gt;
&lt;script type="text/javascript" src="js/jquery_1.7.1_min.js"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;form name="form1" method="post" action=""&gt;
&lt;label for="comments"&gt;Comments:&lt;/label&gt;
&lt;textarea name="comments" id="comments"&gt;&lt;/textarea&gt;
&lt;/form&gt;
&lt;button id="check"&gt;Check&lt;/button&gt;

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

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

if ( $('#comments').val() == '' )
{
alert('Empty!!!');
}
else
{
alert('Contains: ' + $('#comments').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>
<h5>Simple, isn&#8217;t it?</h5>
<p>Do you know of any other ways to <em><strong>check if textarea is empty using jQuery</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/jquery-textarea-empty-how-to-check-if-textarea-is-empty-using-jquery/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">907</post-id>	</item>
	</channel>
</rss>
