Advertisement
adalsanto

Untitled

Jan 10th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1.                 $output .='<input type="hidden" id="cmd" name="cmd" value="_donations">
  2.             <p class="donate_amount"><label for="amount">'.__('Importo', 'dplus').':</label><input type="text" name="amount" id="amount" value="'.$dplus['default_value'].'" /> <small>('.__('','dplus').$cur.')</small></p><span id="errd"></span>';
  3.            
  4.             <script type='text/javascript'>
  5.             jQuery('#donateplusform').submit(function() {
  6.             if (jQuery('#amount').val() >= ".$dplus['default_value'].")
  7.             {
  8.             return true;
  9.             }
  10.             else {
  11.             jQuery('#errd').css('color', 'red');
  12.             jQuery('#errd').text('Importo minimo: ".$dplus['default_value']." Euro').show();
  13.             return false;
  14.             });
  15.             </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement