$("[hello='world']").html("heihei!!!"); jQuery属性选择器
<body> <div hello="world" class="">heihei!!!</div> <script type="text/javascript"> $("[hello='world']").html("heihei!!!"); </script> </body>
<body> <div hello="world" class="">heihei!!!</div> <script type="text/javascript"> $("[hello='world']").html("heihei!!!"); </script> </body>