JQueryで特定のclassをセレクタで選択し、その中で特定のtypeだけ除外する方法はありますでしょうか?
下記のようにclass="email_form"内のclass="text1"で指定するが
type="email"の場合だけイベントを行わせてたくないときにどのように記述すればよろしいでしょうか。
$(".email_form .text1").on('focus', function{
処理。。。
});
HTML
1<form class="email_form" method="post"> 2 <input type="text" class="text1"> 3 <input type="text" class="text2"> 4 <input type="checkbox" name="first-name" class="text1"> 5 <input type="checkbox" name="first-name" class="text2"> 6 <input type="email" class="text1"> 7 <input type="email" class="text2"> 8 <input type="radio" class="text1"> 9 <input type="radio" class="text2"> 10</form>
項目が少ない場合、改めて別にclassを指定してそのclassで指定すればいいと思うのですが、実際のコードですととても利用箇所が多いので、特定のtypeだけ除外できるとありがたいです。
どなたかご教授お願い致します。