I add dynamic in a loop buttons and divs in php and I want to show/hide only this div which has the same value as button while clicking on button. Div is hidden by css.
while (($entry = readdir($handle)) !== false) {
if ($entry != '.' && $entry != '..') {
echo "<input type=\"submit\" value=\"$entry\" class=\"button\">";
echo "<p id=\"mydiv\" value=\"$entry\"></p>";
}
}
Aucun commentaire:
Enregistrer un commentaire