Page Load Issue
How to run javascript function in page load and set value in hidden field ;in page load
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.

Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sahil SainiRank #1,646 · 933 reputationPosted Jul 23, 2017, 10:52 PM EDT
$(document).ready(function() { document.getElementById("HiddenFieldId").value = "1"; }); OR $(document).ready(function() { document.getElementById('');});