diff --git a/monstra/helpers/form.php b/monstra/helpers/form.php index 9192343..e6e6538 100644 --- a/monstra/helpers/form.php +++ b/monstra/helpers/form.php @@ -136,6 +136,9 @@ // Set the input name $attributes['name'] = $name; + + // Set the input id + $attributes['id'] = (isset($attributes['id']))?$attributes['id']:$name; // Set the input value $attributes['value'] = $value; @@ -286,6 +289,9 @@ // Set the input name $attributes['name'] = $name; + + // Set the input id + $attributes['id'] = (isset($attributes['id']))?$attributes['id']:$name; return ''.$body.''; } @@ -310,6 +316,9 @@ // Set the input name $attributes['name'] = $name; + // Set the input id + $attributes['id'] = (isset($attributes['id']))?$attributes['id']:$name; + $options_output = ''; foreach ($options as $value => $name) {