jQuery addClass example
Change class name on click in jQuery
HTML
<input type="text">
<input type="email">
<pre id='pre'></pre>
JavaScript
const $res = $('input').find('[type=text], [type=email]');
$('#pre').text(JSON.stringify($res));
<input type="text">
<input type="email">
<pre id='pre'></pre>
const $res = $('input').find('[type=text], [type=email]');
$('#pre').text(JSON.stringify($res));