Finding Button Selector on Page using jQuery.

vishalneeraj-24503
Posted by vishalneeraj-24503 under jQuery category on | Points: 40 | Views : 325
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<input type="button" value="Input Button">
<button>Button</button>
<script>
var input = $(":button").addClass("marked");
document.write(input.length);
</script>

.marked
{
background-color: green;
border:1px blue solid;
}

Comments or Responses

Login to post response