![]() |
Does anyone have time for a little change?
It would be correct for the form helper to set the attributes "required", "disabled", "autofocus", "readonly" Basically it's boolean values output as Code: <input type="text" required disabled autofocus readonly> I think it's worth adding this feature to parse_form_attributes() function. What for? It is not possible to easily set these options in form_input(), form_textarea(), etc. Empty values are inserted. For HTML 5 this is wrong PHP Code: form_input([ |
Messages In This Thread |
Add the correct HTML attributes to the form helper - by ozornick - 07-13-2022, 02:08 AM
RE: Add the correct HTML attributes to the form helper - by MGatner - 07-14-2022, 04:09 AM
RE: Add the correct HTML attributes to the form helper - by ozornick - 07-16-2022, 10:09 PM
RE: Add the correct HTML attributes to the form helper - by kenjis - 10-10-2022, 05:13 PM
RE: Add the correct HTML attributes to the form helper - by kenjis - 10-10-2022, 06:19 PM
|