Hi
JavaScript
Value in alert gets displayed but it displays Blank Value in below code.
document.getElementById('txtBalancedScoreCardAreas').value = BalancedScoreCardAreas;
Balanced Score Card Areas *
$(function () {
$('.summernote').summernote();
});
function BindData(e) {
document.getElementById('btnSave').value = "Update";
var currentRow = $(e).closest("tr");
var Id = currentRow.find("td:eq(0)").text();
var BalancedScoreCardAreas = currentRow.find("td:eq(2)").text();
alert(BalancedScoreCardAreas);
alert(BalancedScoreCardAreas);
document.getElementById('hdfID').value = Id;
document.getElementById('txtBalancedScoreCardAreas').value = BalancedScoreCardAreas;
};Thanks

Vishal JoshiRank #377 · 6.7K reputationPosted Oct 7, 2022, 3:52 AM EDT
Hello
In asp.net runtime it will change id. you need to set ClientIDMode="Static". please check below code
Try to replace your code with above and same javascript code you writtern should work.
Thanks
LaxmikantRank #5,709 · 289 reputationPosted Sep 30, 2022, 8:20 PM EDT
are you your text box id is - txtBalancedScoreCardAreas ? right click on your page select 'view source' and see the exact id of textbox. This id needs to be replaced
Uday DodiyaRank #239 · 10.3K reputationPosted Oct 7, 2022, 12:24 AM EDT
It simply means that the element was not found. If its
idvalue is "txtBalancedScoreCardAreas" (check it up, should beid="txtBalancedScoreCardAreas", and see how it looks in raw HTML on the client side, using "View Page Source"), the jQuery selector must be written as:myElement = $("#txtBalancedScoreCardAreas"); myElement.value = BalancedScoreCardAreas;