mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 19:46:21 +05:30
label for must = input id
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label#using_the_for_attribute
This commit is contained in:
parent
152b5990bb
commit
0df2478879
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@
|
|||
foreach ($array as $key => $value) {
|
||||
echo '<tr>';
|
||||
echo '<td><label for="' . $key . '">' . $key . '</label></td>';
|
||||
echo '<td><input type="text" name="-config-' . $key . '" value="' . valueMaker($value) . '"></td>';
|
||||
echo '<td><input type="text" id="' . $key . '" name="-config-' . $key . '" value="' . valueMaker($value) . '"></td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue