We need further information. Also, it is better if you have well-known about DOM for complete this case.
We need further information. Also, it is better if you have well-known about DOM for complete this case.
datatype: 'json', should be dataType
Solved ? Mark as 'Solved' with the below link like 'Marke as Solved Thread' or somethign similar.
The error is there is no variable named content like $content. Set the $content variable. Here it is:
$i = 0;
$content;
foreach ($value as $row) {
$content .= "<option value=\"" . $i . "\" " . $selected . ">" .$row . "</option>\n";
$i++;
}
But there is no print result for above codes. What do you want for?
Do you want to print out the options. Try this
$i = 0;
echo "<select name=\"selectItem\">";
foreach($value as $row) {
echo "<option value=\"" . $i . "\">" . $row . "</option>\n";
$i++;
}
echo "</select>";
Good luck..
I check your code and it is ok. Can I know what problem do you have? If you want to control the height of 'textarea', try with 'CSS', it will be more flexible and effective than HTML attribute.