Put the calculation logic in blur event?

$("input[type='text']:order").blur(function(){
$('#total_buyed').val( v * 2.75 );
})

On Oct 26, 4:18 am, ReynierPM <rper...@uci.cu> wrote:
> Hi every:
> I have this function:
>
> $("input[type='text']:order").keyup(function() {
>      var v = $(this).val().replace(/\D/g,'');  // removes non numbers
>      $('#total_buyed').val( v * 2.75 );
>
> });
>
> The function is working correctly but when I press any key the same
> operation is calculated. How to avoid this? See online 
> athttp://jose-couto.com/pintpal4/order_pintpal2.html
> Cheers and thanks in advance
> --
> ReynierPM

Reply via email to