Button - User Icon inside the a element automaticaly
I have the following html throughout my site: <a href="#devices/edit/<?php echo $site['Device']['id'] ?>" class="user" title="Edit this device"><span class="ui-icon ui-icon-pencil"></span>Edit</a>
Seems odd that in the jQuery UI that it wouldn't be considered that people might want to do this.
To me this is semantical better as it requires less work..
Is there a way to get the $('a','#main').button(); to use the icon within the elem tags automatically?
Really don't want to have to be using {icon:'ui-icon-pencil'} everywhere...
Thanks,
Chris