I am using Jquery AutoNumeric control to input only numeric values(with decimals) to a textbox.
The numeric control accepts upto 5 decimal places.
I need to know how do we not make display of unnecessary decimal digits when we focus out of the control?
For example: If i enter "1" and click outside the textbox, it automatically formats to display "1.00000". I want this to be displayed as "1" unless there is a valid decimal place. Is there any option to auto format this?
Is there a way to specify multiple sources (2 ajax requests) for JQUERY
AutoComplete plugin?
Both requests should bind and show the results when they return from the
server asynchronously.
$(".autocomplete").autocomplete({
source: function (request, res) {
request 1 : $.ajax({}); //show the results in autocomplete
when results are returned
request 2 : $.ajax({}); //show the results in autocomplete
when results are returned
..
..
..
},
minLength: 1
});