I have the following form:
<form id="xx">
<button type="button">Submit</button>
<button type="button">Submit and Close</button>
<button type="button">Close</button>
</form>
How can I change the type of my buttons that contain the word “Submit” from a type “button” to a type “submit”?
first filter for buttons which have “submit” as text, then change the property.