We would like to know how to select attribute using not equals operator.
<!-- w w w. java2s . c o m-->
<html>
<head>
<script type="text/javascript" src='http://code.jquery.com/jquery-1.5.2.js'></script>
<script type="text/javascript">
$(document).ready(function(){
$("input[name!='me']").next().text(" changed");
});
</script>
</head>
<body>
<div>
<input type="radio" name="you" value="A" />
<span>data</span>
</div>
<div>
<input type="radio" name="me" value="B" />
<span>data</span>
</div>
<div>
<input type="radio" name="me" value="C" />
<span>data</span>
</div>
</body>
</html>
The code above is rendered as follows: