|
|
|
ขอคำแนะนำหน่อยครับ เรื่องการ preview รูปก่อน upload หลายๆรูปครับ |
|
|
|
|
|
|
|
function showPreview(ele, idx)
$('#imgAvatar'+idx).attr('src', ele.value);
....
....
$('#imgAvatar'+idx).attr('src', e.target.result);
....
....
newCell.innerHTML = "<center><input type=\"file\" name=\"filUpload"+intLine+"\" id=\"file_upload\" OnChange=\"showPreview(this, "+intLine+")\"></center>"
...
...
newCell.innerHTML = "<center><img id=\"imgAvatar"+intLine+"\" width=\"100\" height=\"100\"></img></center>"
|
|
|
|
|
Date :
2016-03-27 06:40:50 |
By :
Chaidhanan |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2016-03-27 19:54:59 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|