<div id="element_id">hellow world</div>
var value = $('#element_id').html()
returns the "hello world"
sometimes, but not always. val()
always works, but not html()
This only happens in firefox (always works in Chrome). Any ideas?
EDIT Still haven't figured out the problem yet, but I will post the conclusion once I have found it! Thanks for the responses.