My problem is very simple
$('#button').removeAttr('type');
triggers an error on firebug
type property can't be changed
I have 2 questions:
- How to get around this?
- Is there a reference with a list of properties that can't be changed?
Thanks
EDIT
What I want to do is:
Prevent the button from submitting the form.
Note: my button is included as a html template, the form code is not accessible form me.
Something like:
include 'form.php';
include 'buttons.php';
where I have control only on buttons.php