I want to display the text area value. I generate it with PHP code This code is in the looping
for($i=0;$i<$piecount;$i++)
{
echo "<tr><td class=\"forma\" align=\"center\">".$compc[$i]."</td>";
if($i==0)
{
echo "<td align=\"center\" class=\"forma\" rowspan=".$pcg." style=\"\">
<textarea name=\"eva\" id=\"evatext\" class=\"textEva\" >
</textarea>
<input type=\"image\"src=\"image/save.jpg\"class=\"imgClass\" onclick=\"EvaCek();\" name=\"save\"></td></tr>";
} }
Also I have a html code for dummy my id for inputdate which is displayed none
<input name="evadate" id="inputdate" style="display:none">
And I pass it to javascript
function EvaCek()
{
var dateobj = new Date();
var month = dateobj.getUTCMonth()+1;
var day = dateobj.getUTCDate();
var year = dateobj.getUTCFullYear();
var tes=document.getElementById("inputdate").innerHTML= year+"-"+month+"-"+day;
var bla=document.getElementById("evatext").value;
if(bla!="")
{
alert(tes);
alert(bla);
}
}
When I type something into the text area and save it, it does the alert, but only the date, the text area is NULL. What is wrong in here? Thank you