By rodrigoangelos on Saturday, 10 September 2011
Replies 1
Likes 0
Views 3.3K
Votes 0
Hey guys,

Im making this tutorial because i wasted too much time searching this and maybe help someone!
I used a jquery that use css to add a maxlength to textarea. So:

1- First, install the free plugin 'jQuery++ Integrator' to integrate joomla and jquery
To load jquery faster put jquery.js at the root of the site:
1.1- Config embed jquery to: Yes - Local copy
1.2- Config jQuery custom CDN to: /index.php/jquery-1.6.2.js (just an example)

2- Download jquery.maxlength.js (search at google) and put at the root of the site.

3- Between <head> </head> of the index.php of your template use this:

<script type="text/javascript" src="jquery.maxlength.js"></script>
<script>

jQuery(document).ready(function($) {

$().ready(function(){
$("#jevcontent").maxLength(178);
});

});

</script>

3.1- Edit #jevcontent to the css that you want.
3.2- Edit 178 to the maxlength that you want.
3.3- If you want more just add another code like:

$("#example").maxLength(100);
$("#jevcontent").maxLength(178);

4- Good luck! Bye.
Thanks - that is very helpful.

This may also be of interest if using the tinyMCE editor http://www.jevents.net/en/jevents-15-to ... escription
·
13 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post