I wonder why people seems to prefer :input over input as a jQuery selector? Basically, this two lines seem to do the same thing :
$(\'i
:input is pseudo selector by jQuery which includes , , e.t.c
input is a tag match which strictly matches .
This additional note about :input is informative:
Because :input is a jQuery extension and not part of the CSS specification, queries using
:inputcannot take advantage of the performance boost provided by the native DOMquerySelectorAll()method. To achieve the best performance when using:inputto select elements, first select the elements using a pure CSS selector, then use.filter(":input").
--from https://api.jquery.com/input-selector/