Jquery Exclude a Selector?

后端 未结 5 1284
-上瘾入骨i
-上瘾入骨i 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:57

    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.

提交回复
热议问题