开发者

Text area value not setting?

开发者 https://www.devze.com 2023-02-08 03:13 出处:网络
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 (

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消