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