Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/EmptyTag/157.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery无法识别tel输入类型_Jquery_Html - Fatal编程技术网

jQuery无法识别tel输入类型

jQuery无法识别tel输入类型,jquery,html,Jquery,Html,我正在使用jquery1.9.1 我正在使用一种新的电话号码输入类型 <input class="phoneUS" id="cphone" name="phone" type="tel" required/> 它不起作用。因此,我在控制台上尝试,我得到: Error: Syntax error, unrecognized expression: input["tel"] 应该是您想要的:非常接近,您只需要告诉jQuery您正在寻找的输入类型 Error: Syntax error

我正在使用jquery1.9.1

我正在使用一种新的电话号码输入类型

<input class="phoneUS" id="cphone" name="phone" type="tel" required/>
它不起作用。因此,我在控制台上尝试,我得到:

Error: Syntax error, unrecognized expression: input["tel"]
应该是您想要的:非常接近,您只需要告诉jQuery您正在寻找的输入类型

Error: Syntax error, unrecognized expression: input["tel"]
$('input[type="tel"]').css('background','red');