I want to compare the two input values, just try in javascript, but it\'s not working fine. I\'m using the following code
function check_closing()
{
var opening
First of all you you need to convert the strings
into integers
function check_closing(){
var opening = parseInt($('#opening').val(), 10);
var closing = parseInt($('#closing').val(), 10);
if(opening > closing){
alert('Opening is greater than Closing. Please enter the correct value');
$('#closing').val('');
}
}