jQuery 属性等于选择器不起作用.请看一下.提前致谢.:)
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
<script type="text/javascript" >
$( document ).ready(function() {
alert($( "input[myattr='navo']" ).value);
$( "input[myattr='navo']" ).value="Simon Commission";
alert($( "input[myattr='navo']" ).value);
});
</script>
</head>
<body>
<input type="text" myattr='navo' value="Morley Minto Reform" />
</body>
</html>Run Code Online (Sandbox Code Playgroud)