Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    jQuery plugin per inserire prezzo

    Ciao.

    Esiste un plugin per inserire il prezzo
    in una casella di input ?

    Tipo un date picker per intenderci.

    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  2. #2
    Mah per ora utilizzo
    Codice PHP:
    $(function() {
        var 
    options = [1,2,3,4,5,6,7,8,9,0,'.'];
        var 
    html '<ul class="number-picker">';
        for(var 
    0len options.lengthleni++){
            
    html += '[*]'+options[i]+'';
        }
        
    html += '[/list]';
     
        $(
    '#price').attr('disabled'true);
        $(
    '#price-element').append(html); 
        $(
    '.number-picker li').click(function(){
                var 
    digit =  $('#price').val()+$(this).text();
                $(
    '#price').val(digit);
            }
        )
    }); 
    facile e veloce
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.