anu123 Posted November 14, 2007 Share Posted November 14, 2007 Can we create hidden field from within a javascrpt function? Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 14, 2007 Share Posted November 14, 2007 try this var input = document.createElement("input"); input.setAttribute("type", "hidden"); input.setAttribute("name", "hiddenfield"); input.setAttribute("value", "somevalue"); document.getElementById("formid").appendChild(input); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.