<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Text area - limit to 140 characters</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Text area - limit to 140 characters</description>
<language>en</language>
<pubDate>Sat, 07 Nov 2026 05:58:24 +0000</pubDate>

<item>
<title>brucenow on "Text area - limit to 140 characters"</title>
<link>https://www.machform.com/forums/topic/text-area-limit-to-140-characters#post-12787</link>
<pubDate>Thu, 20 Oct 2011 04:02:28 +0000</pubDate>
<dc:creator>brucenow</dc:creator>
<guid isPermaLink="false">12787@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I figured it out from other forum posts here.&#60;/p&#62;
&#60;p&#62;I just add this: if($form_id == 4) - and of course the &#34;4&#34; is replaced with whichever form you are addressing.&#60;/p&#62;
&#60;p&#62;between this: $(document).ready(function(){ &#60;/p&#62;
&#60;p&#62;and this: $(&#34;#element_2&#34;).keyup(function(){&#60;/p&#62;
&#60;p&#62;Bruce
&#60;/p&#62;</description>
</item>
<item>
<title>brucenow on "Text area - limit to 140 characters"</title>
<link>https://www.machform.com/forums/topic/text-area-limit-to-140-characters#post-12786</link>
<pubDate>Thu, 20 Oct 2011 02:31:04 +0000</pubDate>
<dc:creator>brucenow</dc:creator>
<guid isPermaLink="false">12786@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It would seem that if I am using more than on form on my website (which I am) I would need to indicate in the code above which table &#34;#element_2&#34; belongs to.  Yes?  No?&#60;/p&#62;
&#60;p&#62;And if so how do I do that?  My PHP is not my strong suit.&#60;/p&#62;
&#60;p&#62;Bruce
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Text area - limit to 140 characters"</title>
<link>https://www.machform.com/forums/topic/text-area-limit-to-140-characters#post-10359</link>
<pubDate>Fri, 03 Sep 2010 18:53:14 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">10359@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;It just to make you easier when using the code. But you can also try to change this code &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;into &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/jquery/jquery-core.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;that would give you the same result
&#60;/p&#62;</description>
</item>
<item>
<title>shamzzz on "Text area - limit to 140 characters"</title>
<link>https://www.machform.com/forums/topic/text-area-limit-to-140-characters#post-10346</link>
<pubDate>Thu, 02 Sep 2010 18:50:14 +0000</pubDate>
<dc:creator>shamzzz</dc:creator>
<guid isPermaLink="false">10346@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for your help but please explain to me why this script goes to:&#60;br /&#62;
&#60;a href=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#34; rel=&#34;nofollow&#34;&#62;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I always like to know what sites my code refers to, incase they stop working then my things stop working etc..&#60;/p&#62;
&#60;p&#62;i look forward to your reply&#60;/p&#62;
&#60;p&#62;thanks&#60;/p&#62;
&#60;p&#62;shamzzzzzz
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Text area - limit to 140 characters"</title>
<link>https://www.machform.com/forums/topic/text-area-limit-to-140-characters#post-10287</link>
<pubDate>Wed, 25 Aug 2010 21:26:11 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">10287@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This would require a little bit modifications.&#60;/p&#62;
&#60;p&#62;Let say you have a form with a textarea which having id = &#34;element_2&#34; (view the HTML source of your form). Remember this id number.&#60;/p&#62;
&#60;p&#62;Then edit your &#34;includes/view-functions.php&#34; file, search around line 1832 for this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/view.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;exactly below that line add this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script&#38;gt;
$(document).ready(function(){
	$(&#38;quot;#element_2&#38;quot;).keyup(function(){
		if($(this).val().length &#38;gt; 140){
	       $(this).val($(this).val().substr(0, 140));
	    }
	});

});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;that would limit the particular textarea (with id = &#34;element_2&#34;) to 140 characters.&#60;br /&#62;
Make sure to change it with your own textarea id.
&#60;/p&#62;</description>
</item>
<item>
<title>shamzzz on "Text area - limit to 140 characters"</title>
<link>https://www.machform.com/forums/topic/text-area-limit-to-140-characters#post-10279</link>
<pubDate>Wed, 25 Aug 2010 16:27:00 +0000</pubDate>
<dc:creator>shamzzz</dc:creator>
<guid isPermaLink="false">10279@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Can someone please tell me what needs to be changed in the code so a text area can be limited to 140 characters?&#60;/p&#62;
&#60;p&#62;Any help will be much appreciated!&#60;/p&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;Shamzz
&#60;/p&#62;</description>
</item>

</channel>
</rss>
