Is it has any way to get value from Select Option as Integer by default ?
from select here
<select id="lesson_per_class" >
<option value=""> </option>
<option value="1">1 Lesson</option>
<option value="2">2 Lessons</option>
<option value="3">3 Lessons</option>
<option value="4">4 Lessons</option>
</select>
When I tried to get their value to calculate, I found that it return as String and can't use to calculate here
var lesson_per_class = $('#lesson_per_class').val();
alert('value is ' + ( 10 + lesson_per_class ));
// it give result as 10x instead of 1x
currently, the way I solved is parseInt(), but I need to know, is it has anyway to get it as Integer by default?