5
Hi,
Es kann nicht immer gleich jeder zur Stelle sein der dir hilft. Wir tun das alles hier in unserer Freizeit und natürlich mit begrenzten Fähigkeiten.
Please do following to add a counter / limiter to a xform txtarea
1. Download and unzip following
http://www.jqeasy.com/jquery-character-counter/2. Copy following file to your theme folder: jquery.jqEasyCharCounter.js
3. Open on your website the xform module and check the id of your textarea. In my form is it "ele_19"
<textarea name="ele_19" id="ele_19" title="Jquery Limit" rows="5" cols="35">textarea>
4. Open your theme.html
after
<{$xoops_module_header}>
add following
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript">script>
<script src="<{xoImgUrl}>jquery.jqEasyCharCounter.js" type="text/javascript">script>
<script>
$(document).ready(function(){
$('#ele_19').jqEasyCounter({
'maxChars': 75,
'maxCharsWarning': 70
});
});
script>
you do not need to include jquery if you have already loadid it in the theme. change the jquery function to set your limit
have fun