Jquery Exclude a Selector?

后端 未结 5 2280
渐次进展
渐次进展 2021-02-14 22:00

I\'ve got a form that I clear on focus. I\'ve selected the whole form and it works great except that the submit button goes blank when I click it.

how can I exclude my i

5条回答
  •  佛祖请我去吃肉
    2021-02-14 22:50

    You could use the css3-not selector.

    A selector like that would be: input:not([type=submit]).

    Example here: JsFiddle.

    More info about the not-selector here.

提交回复
热议问题