hello i have a big table of products in each tree there is a form with two inputs. one input is text where the admin can set the product price. the second one is hidden with the value of the product id.
now there is this jquery code.
$(function() {
$(".form").submit(function() {
var dyo_id = $(".dyo_id").val();
var price = $(".setprice").val();
$.ajax({
type: 'post',
url: 'setprice.php',
data: 'price='+price+'&dyo_id='+dyo_id,
cache: false,
success: function(data) {
$('.price'+dyo_id).html(data);
alert('success');
}
});
return false;
});
});
the problem is with the variables they select the first inputs of the first product
it's just a simple question how can i select the current inputs that i am on?
sorry for my poor english.