if input is type jquery code example Example: jquery check if type is checkbox $('#myinput').is(':checkbox')