Comments on: How to set maxlength in textareas by creating a jQuery plugin http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/ Daily free tutorials about web design, coding, jquery and more Sat, 20 Oct 2012 08:55:27 +0000 hourly 1 http://wordpress.org/?v= By: hyundai cars http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/#comment-15835 hyundai cars Tue, 27 Sep 2011 15:39:53 +0000 http://yensdesign.com/?p=53#comment-15835 <strong>korean cars...</strong> [...]How to set maxlength in textareas by creating a jQuery plugin | yensdesign - Tutorials, Web Design and Coding[...]... korean cars…

[...]How to set maxlength in textareas by creating a jQuery plugin | yensdesign – Tutorials, Web Design and Coding[...]…

]]>
By: Bruno Oliveira http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/#comment-13071 Bruno Oliveira Mon, 28 Feb 2011 22:39:45 +0000 http://yensdesign.com/?p=53#comment-13071 Oh, one more thing guys, don't forget to use maxLength with the capitallized L. Oh, one more thing guys, don’t forget to use maxLength with the capitallized L.

]]>
By: Bruno Oliveira http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/#comment-13070 Bruno Oliveira Mon, 28 Feb 2011 22:38:27 +0000 http://yensdesign.com/?p=53#comment-13070 Work fine, thank you! Just created a new file called jquery.maxlength.js include into html and eureka! Simple and elegant solution! I recommend! Work fine, thank you!
Just created a new file called jquery.maxlength.js include into html and eureka!

Simple and elegant solution!

I recommend!

]]>
By: Aron http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/#comment-12881 Aron Thu, 10 Feb 2011 16:48:33 +0000 http://yensdesign.com/?p=53#comment-12881 Hello, Is there a way to use jQuery selectors to make this even more efficient? like: My code: // pardon the bad code, but this is just for the concept: # # $().ready(function(){ # $("textarea").maxLength( // get this current textbox's maxlength value and set it here ); # }); # Hello,

Is there a way to use jQuery selectors to make this even more efficient?

like:

My code:

// pardon the bad code, but this is just for the concept:

#
# $().ready(function(){
# $(“textarea”).maxLength( // get this current textbox’s maxlength value and set it here );
# });
#

]]>
By: mario http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/#comment-2306 mario Wed, 07 Oct 2009 17:30:15 +0000 http://yensdesign.com/?p=53#comment-2306 thank you for this!! thank you for this!!

]]>
By: ColdFusion developer http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/#comment-2128 ColdFusion developer Sun, 23 Aug 2009 15:54:57 +0000 http://yensdesign.com/?p=53#comment-2128 I have altered the onKeyUp function so it will update a DIV with an ID of "charleft_[whatever the id of the textarea is]" with the amount of characters left. So, if textarea/field ID is called "comments" then you put HTML like [You have 100 characters left] this.onkeyup = function(){ //If the keypress fail and allow write more text that required, this event will remove it if(this.value.length > max){ this.value = this.value.substring(0,max); } $('#charleft_'+this.id).text(max - this.value.length); }; I have altered the onKeyUp function so it will update a DIV with an ID of “charleft_[whatever the id of the textarea is]” with the amount of characters left. So, if textarea/field ID is called “comments” then you put HTML like [You have 100 characters left]

this.onkeyup = function(){
//If the keypress fail and allow write more text that required, this event will remove it
if(this.value.length > max){
this.value = this.value.substring(0,max);
}
$(‘#charleft_’+this.id).text(max – this.value.length);
};

]]>
By: How to Get Six Pack Fast http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/#comment-1647 How to Get Six Pack Fast Wed, 15 Apr 2009 14:34:42 +0000 http://yensdesign.com/?p=53#comment-1647 The style of writing is quite familiar . Did you write guest posts for other blogs? The style of writing is quite familiar . Did you write guest posts for other blogs?

]]>
By: Nikola Kovacevic http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/#comment-1548 Nikola Kovacevic Fri, 27 Mar 2009 11:05:01 +0000 http://yensdesign.com/?p=53#comment-1548 Nice one. But... Still user can right click on text area and paste text. I'm not sure is my remark out of scope. Is there solution for this? Thanks Nice one. But… Still user can right click on text area and paste text. I’m not sure is my remark out of scope. Is there solution for this?
Thanks

]]>
By: How to set maxlength in textareas by creating a jQuery plugin … | Apni Library http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/#comment-882 How to set maxlength in textareas by creating a jQuery plugin … | Apni Library Tue, 20 Jan 2009 22:09:52 +0000 http://yensdesign.com/?p=53#comment-882 [...] Read the rest here:  How to set maxlength in textareas by creating a jQuery plugin … [...] [...] Read the rest here:  How to set maxlength in textareas by creating a jQuery plugin … [...]

]]>
By: Ivan Guardado Castro http://yensdesign.com/2009/01/how-to-set-maxlength-textareas-by-creating-jquery-plugin/#comment-845 Ivan Guardado Castro Sun, 18 Jan 2009 18:23:55 +0000 http://yensdesign.com/?p=53#comment-845 Hi miguel! The main objective of this plugin is set maxlength in textareas, which has not the maxlength attribute. However, I decided to include the inputs also because it is not costly and it could help sometimes. Thanks! Hi miguel! The main objective of this plugin is set maxlength in textareas, which has not the maxlength attribute. However, I decided to include the inputs also because it is not costly and it could help sometimes.

Thanks!

]]>