Emz1402 Emz1402 - 22 days ago 8
ASP.NET (C#) Question

how to get the title attributes in my lvrow in javascript

im trying to get the title in

function getProj(lvrow)
. but i dont know whats wrong in my javascript.

heres my javascript

function getProj(lvrow){
var btnhd = document.getElementById("hdField");
btnhd.value = $(lvrow).data("title") // in this part the program always stop
document.getElementById("getProj").click();
}


Thanks.

Answer

as far as i understood, lvrow is your project object and it has title property.

function getProj(lvrow){ 
    var btnhd = document.getElementById("hdField");
    btnhd.value = lvrow.title;
    document.getElementById("getProj").click();
} 

Hope this helps :)