get the id from several span-tags
Hi,
I get html from a post like this:
-
<tr>
<td align="center">
<input id="stk2" type="text" size="2" value="1" name="stk2"/>
<span id="2" class="akt">akt</span>
</td>
<td align="right">8.75 €</td>
</tr>
<tr>
<td align="center">
<input id="stk4" type="text" size="2" value="1" name="stk4"/>
<span id="4" class="akt">akt</span>
</td>
<td align="right">8.75 €</td>
</tr>
It's a part from a basket. I want to change the number of items and then refresh (.akt) the basket. To identify the entry I need the basket ID. But I don't know how to do.
You can see what I meen hier:
http://1a-schriften.de/index.php
You must add something into the basket and klick right top.
-
$(".akt").click(function() {
$.post("warenkorb.php",{
show: 0,
wkid: $("#akt").attr("class"),
stk: $("#stk").val()
},
function(data){$("#col1_content").html(data)});
});
I'll hope you understand my problem and my english.
Regards Bernd