jquery if is input type is search code example Example: jquery get input type $('#identifier').attr('type');