How do I count the number of s in a DOM element using jQuery?
The W3C solution:
var len = document.getElementById("input1").length;