我的一边是div,另一边是输入型文件。我想点击一个按钮,将div的内容(这是一个图像)复制到输入文件中。所以我试过了。
SELECT
StoreName,
Catagory,
ItemName,
SUM(Qty) AS Qty,
MAX(Rate),
SUM(Purchage) AS Purchage,
MAX(p_Rate),
SUM(S_Qty) AS S_Qty,
MAX(S_Rate)
FROM Stock
GROUP BY StoreName, Catagory, ItemName
ORDER BY StoreName ASC

$(document).ready(function(){
$('#mbtn').click(function(){
$('#mfile').attr('value',$('#mdiv').html());
});
});