Click here to Skip to main content
15,885,651 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi..

I want to add hiddenfield from javascript.provide soln for it.thanx
Posted

Your question is similar to How create server control using javascript?[^]


--Amit
 
Share this answer
 
yeeeeee.............

I got answer

C#
var input = document.createElement("input");

            input.setAttribute("type", "hidden");

            input.setAttribute("id", "lastSCrollPos");

            input.setAttribute("value", 0);


            document.getElementById("chells").appendChild(input);
 
Share this answer
 
Comments
madhuri@mumbai 13-Sep-12 10:02am    
oh.. good.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900