Hi.
Is there out there a jquery plugin
for inserting price in a
input field (I mean like date picker) ?
Bye.
Hi.
Is there out there a jquery plugin
for inserting price in a
input field (I mean like date picker) ?
Bye.
$(function() {
var options = [1,2,3,4,5,6,7,8,9,0,'.'];
var html = '<ul class="number-picker">';
for(var i = 0, len = options.length; i < len; i++){
html += '<li>'+options[i]+'</li>';
}
html += '</ul>';
$('#price').attr('disabled', true);
$('#price-element').append(html);
$('.number-picker li').click(function(){
var digit = $('#price').val()+$(this).text();
$('#price').val(digit);
}
)
});
my xhtml
<dt id="price-label"><label for="price" class="required">Price :</label></dt>
<dd id="price-element">
<input type="text" name="price" id="price" value="" maxlength="7" /></dd>
It could be an idea
quick and easy