March 24th, 2007, 11: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, 12:00 PM
The value property only works if you are working with form fields. Use innerHTML instead. It would be return d.innerHTML;
March 24th, 2007, 02: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, 08:57 AM
i have sorted this out. i had a syntax problem
Originally Posted by alicats12345