In javascript you can convert a number present in a string into number using parseInt function.

Syntax:

parseInt(string)

Example:

var v="100";
var num=parseInt(v);
alert(num);