Lets say I have two elements inside a parent container.
<div class="myclass" id="myid" myvalue="1"></div>
<div class="myclass" id="secid" myvalue="2"></div>
Now I select firstitem, I set the value from spinner and code will be something like selectable plugin but I want to assign values to selected item.
$('#myspinner').spinner({
stop: function (event, ui) {
//change myid myvalue to selected value
}
});
How can I change the value of the second element using the same code? My fiddle my example
eventoruiobjects?