Closed sicsol closed 11 years ago
Can you explain more clearly what you are looking for? Adding multiple attributes in one call?
I'd like the ability to add custom attributes like (data, id, onsubmit etc.) to the form element itself
Example
<form action="action" method="post" data-title="title" id="myId" onsubmit="javascript">
This should have been possible already, but I found another bug related to the setAttribute method that prevented method chaining, so I updated that anyways.
I've also changed the public API a bit, so now it's attribute($key, $value)
and clear($key)
. Just thought it was a little more concise and less messy when chaining lots of options.
Ability to add attributes to a form element