Hi
I show a dialog with a NumberSpinner field. This spinner I fill with data read from a table in my database. My code is returning the next id available so i want my spinner got this value and set ir as minimum too. My code :
var nextIdUrl = 'MyController.php';
//console.log(nextIdUrl);
$.get(nextIdUrl, function(response) {
var jsonResponse = eval('(' + response + ')');
var nextId = jsonResponse.NextId;
$('#id_canal').numberspinner({
min: nextId,
value:nextId
});
});
nextId with a value, say 10, but my spinner does not got this value and I can go back , say 9, 8, ...
I also wrote
$('#id_canal').numberspinner({
min: nextId
});
$('#id_canal').numberspinner('setValue', nextId) but it did not work either...
Any hint,please...