$(".resource_body_build_stone_ok").click(function(){
$.post("ajax.php",
{
build:"resource",
id: $(this).attr('data-id-build'),
level:$(this).attr('data-level-build')
},
function(data,status){
$(".resource_body").load("resource_b.php/?r=1");
$(".frame_stock").load("stock.php");
alert("Data: " + data + "\nStatus: " + status);
});
});
If the value id: $(this).attr('data-id-build')
is 1 to 10 , how can I set id value in resource_b.php/?r=1
instead the value 1.
For example, if value of $(this).attr('data-id-build')
=5 ==> resource_b.php/?r=5