I have an element in javascript like follows:
280ms
I want to extract 280 from the span element. How can I do it?
You could use the parseInt() function
parseInt()
var number = parseInt($("span").text())