Actually, you need to prevent the script from inserting text from the buffer with the mouse through the right-click into the input, while leaving the input from the keyboard and Ctrl + V working

<input type="text" class="fw text price-all" name="fld15" id="order-fld-15" value="" pattern="^\d+\.?(\d{1,2})?$" placeholder="Цена: 0.00 €" size="8"> 

  • Block the right click on the input for example? - Moonvvell

2 answers 2

with jquery, for example:

 $("#order-fld-15").bind("contextmenu", function(e) { e.preventDefault(); }); 

    oncontextmenu = 'return false';

     <input oncontextmenu='return false;' type="text" class="fw text price-all" name="fld15" id="order-fld-15" value="" pattern="^\d+\.?(\d{1,2})?$" placeholder="Цена: 0.00 €" size="8">