filling box with number, not string
parent
6d14ba1c30
commit
50d9fcc6d6
|
@ -10,9 +10,10 @@ $j().ready(function() {
|
|||
$j('#premiums_list input').on("click", function() {
|
||||
amount = $j(this).siblings('span.menu-item-price').html();
|
||||
amount = amount.split('$')[1];
|
||||
current = parseInt(inputbox.val());
|
||||
if (current<parseInt(amount))
|
||||
{inputbox.val(amount);}
|
||||
amount = parseInt(amount);
|
||||
current = inputbox.val();
|
||||
if (current<amount) {
|
||||
inputbox.val(amount);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue