How to search HTML element id and get substring from the result in JavaScript

1 Answer

0 votes
var s = document.getElementById("me").id.substring(document.getElementById("me").id.indexOf("-") + 1);


answered May 26, 2014 by avibootz
...