I am not sure what you mean, can you explain a little more?
I have looked at this before, not seeing anything like I am trying to do. This is just updating a div with the value that is already predefined and then adjusted.
I am trying to insert a whole new value on the fly using a combo of keyboard key + lclick. More so is this even possible to do?
Inside keyboard / mouse events this is my solution.
// Calculate the value clicked on in the slider
var sliderWidth = $('#slider').width();
var maxValue = $(this).slider('option', 'max');
var offset = $(this).parent().offset();
var mouseX = mouse.pageX - offset.left;
var newValue = Math.round(((maxValue / sliderWidth) * mouseX) - 1);
// Get the sliders original values
var values = $(this).slider('values');
// Append the new value to the current values and sort by value ascending
values[values.length] = newValue;
values = values.sort();
console.log('New Values: ' + values);
// Set the new values in the slider
$(this).slider('option', 'values', values);
// Rebuild the slider handles
var tabs = '';
count = 1;
var leftPercent = 0;
$.each(values, function (index, value) {
leftPercent = Math.round((value / maxValue) * 100);
console.log(leftPercent);
tabs += '<a class="ui-slider-handle ui-state-default ui-corner-all" href="#" id="'+(count++)+'" style="left: '+leftPercent+'%;"></a>';
});
$('#slider').html(tabs);
EDIT: Issue was found with this solution that causes the slider to become unresponsive when trying to move the handles around.