Re: Javascript
| From: | Stut | Date: | Mon, 23 Apr 2007 12:32:04 +0000 |
| Subject: | Re: Javascript | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-27732@lists.php.net to get a copy of this message | ||
Alf Stockton wrote:
Please tell the difference between:- document.getElementById("Amount").innerHTML = " "; and document.getElementById("Amount").value = " ";Not all DOM objects have an innerHTML attribute, and likewise not all of them will have a value attribute. For example, <div> and <span> have innerHTML, and <input> has value. There are plenty of web-based resources that will tell you what attributes different objects have. Google is your friend. -Stut