I am changing the current theme of my blog and I wish to add a class to all my input fields.
I am not well versed with regex codes, so I end up in a lot of trouble whenever I need to make things like these happen.
type="submit"
I want to add class btn
needs to be added to <input type="submit">
Old Code
<input type="submit" id="some_id" name="something" class="some_class" value="some_value" />
New Code
<input type="submit" id="some_id" name="something" class="btn some_class" value="some_value" />
and
Similarly, I want the class input
to be added to <input type="text">
and <input type="textarea">
Old Code
<input type="text" id="some_id" name="something" class="some_class" value="some_value" />
<textarea id="some_id" name="something" class="some_class" value="some_value" />
New Code
<input type="text" id="some_id" name="something" class="input some_class" value="some_value" />
<textarea id="some_id" name="something" class="input some_class" value="some_value" />