Do number comparison, not string comparison, on pledge amounts
parent
3fe2800dfa
commit
6451e1adba
|
@ -10,8 +10,8 @@ $j().ready(function() {
|
|||
$j('#premiums_list input').click(function() {
|
||||
amount = $j(this).siblings('span.menu-item-price').html();
|
||||
amount = amount.split('$')[1];
|
||||
current = inputbox.val();
|
||||
if (current<amount)
|
||||
current = parseInt(inputbox.val());
|
||||
if (current<parseInt(amount))
|
||||
{inputbox.val(amount);}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue