The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
||||
|
||||
![]()
thanks for replying but i'm not sure how to make it work !
see this is my actual textarea:- HTML Code:
<!-- Text Area --> <textarea MaxChars="1000" name="description" id="description" rows="6" cols="50" style="width:540px" onkeypress="if (this.value.length >= parseInt(this.attributes['MaxChars'].value)) return false;" onkeyup=" document.getElementById( this.id+'_charsCount' ).innerHTML = (parseInt(this.attributes['MaxChars'].value)-parseInt(this.value.length));"></textarea> <!-- Text Area --> As you can see all my JS is within onkeypress and onkeyup attribute of textarea. Now how do I use setattribute for MaxChars ? Thank you |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|