
nugraha_isnan - 2011-12-04 18:21:54 -
In reply to message 1 from JP Hay
this is my project
i have db with field name Nmjur, AsalJur,IDJUR
on my js... i have function named hitammerah
take a look at my function
function hitammerah(a,b,c){
document.getElementByID('qwer').value=a;
document.getElementByID('asdf').value=b;
document.getElementByID('zxcv').value=c;
}
this is my row select method call function hitammerah with parameter
$gridjur->addRowSelect("hitammerah('%NmJur%','%AsalJur%','%IDJUR%')");
use '%' before and after fieldname of your table field name...
this is my html example
<input type="text" id="qwer"/>
<input type="text" id="asdf"/>
<input type="text" id="zxcv"/>
.... when you call hitammerah function. your selected row will pass into textboxt... thats how it work. there are so many way to do that.. this is just one of the easiest way to do
i hope it will help you.. sorry for my bad english. i hope u understand