Text area value not setting?
Im trying to set the textarea's value in normal HTML- no javascript. I am making sure I put the text within the tags and am not using a value attribute. However I cant get it to set the value oddly (Firefox Beta 10/9whateveritisnow)
echo "<textarea name='input-".$day."-".$reqM."-".$reqY."' class='calendar-textarea'>".$events[$time]."</textarea>";
this shows in the html as:
<textarea name='input-1-1-2011' class='calenda开发者_开发技巧r-textarea'>Hey calendar</textarea>
However it doesnt put the text in the text area? Any ideas as to why?
Aha! It appears firefox caches the text even when refreshed... So while I was editing, it had no value and it ended up just ignoring the text I put as the value. Rather annoying in all honesty.
I bet $events[$time] is not set or the textarea is invisible.
精彩评论