I have the following code:
<button data-dojo-type="dijit.form.Button" data-dojo-props='baseClass:"styleButton"'
name="_action_update"
type="submit"
label="Save"
>Save</button>
The problem is, that this doesnt seem to actually work as a submit action anymore. If I take away the dojo related stuff, it works as expected. I have used this baseClass method before to apply a style to a button, but not a submit button. How should I change this?
I think you need an
input type="submit"Or if you really need a
buttontag, something ugly like this should workOr of course you could more elegantly attach the event handler without the dom level-0 cruft