问题描述:

They are name sp2 the number been the ID form the Database

<script>

$(function() {

var spinner = $( "#sp<%=rs("ShopID")%>" ).spinner();

});

</script>

this bit working ok

have this function

function Get_Purchase(ID)

{

var CC = $("#Credit").text()

var obj = document.getElementById('Cost' + ID);

var thisCost = obj.getAttribute("data-value");

var wanted = $("#sp" + ID).val();

...

...

which is working

how can i get the onchange of the spinner to run the Get_Purchase() function and pass ID

I know I need to use the this and find the ID by replacing the SP with nothing then ill have the ID but don't know where to put it

have tryed i konw those SP are in the DOM

<script>

$('#sp19 #sp20').spinner({

change:postion(this),

});

</script>

have a alert in the postion function but i don't get the alert

相关阅读:
Top