Jquery Spinner have up to 8 on a page -
they name sp2 number been id form database
<script> $(function() { var spinner = $( "#sp<%=rs("shopid")%>" ).spinner(); }); </script> this bit working ok
have 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 working
how can onchange of spinner run get_purchase() function , pass id
i know need use , find id replacing sp nothing ill have id don't know put
have tryed konw sp in dom
<script> $('#sp19 #sp20').spinner({ change:postion(this), }); </script> have alert in postion function don't alert
Comments
Post a Comment