2009年9月1日

Setting Maxlength with javascript

use javascript to set an object "maxlength" property doesn't working.

must use "maxLength".

ex :

document.getElementById("textObejct").maxLength = 5;

沒有留言:

張貼留言