March 24th, 2007, 10:54 AM
Get text string from div
'd has no properties'
what can i do instead to get all the text from a div?
March 24th, 2007, 11:00 AM
The value property only works if you are working with form fields. Use innerHTML instead. It would be return d.innerHTML;
March 24th, 2007, 01:47 PM
i am using firefox 2 and have tried what you said.
Originally Posted by huyaroo
i just get an document.getElementById(divname) has no properties.
var html = document.getElementById(divname).innerHtml;
March 25th, 2007, 07:57 AM
i have sorted this out. i had a syntax problem
Originally Posted by alicats12345