Jquery为指定form的input元素赋值

$(“#buy_single [name=goodsId]”).val($(‘.tb-selected’).attr(“goods_id”));

为id为buy_single的form的input元素goodsId赋值

Leave a Reply

Your email address will not be published. Required fields are marked *