Re: Javascript

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Isn't it so that HTML tags that are coupled (like <span></span> and <div></div>) have innerHTML, and that values pushed to their innerHTML ends up within them?
Like
   <input value="[value]">
   <span>[innerHTML]</span>

Just a thought.. No energy for Google! right now.

Mike


Stut skrev:
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


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux