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

Iam craeated a div in my View form
with 4 fields such as FieldName,Defaultvalue,Size,Style .
Also have a button named as submit.
During button click i want to store div data into a string using javascript.

Please suggest a solution for this.

Thanks & Regards,
Anupama
Posted
Comments
So, what is the problem? What you tried to achieve this?
vaibhav10Dec1987 2-Aug-13 3:57am    
On submit button you may call a one function in which you can pass all values to the
controller with the help of json.
AnupamaPillai 2-Aug-13 4:30am    
I solved it with few steps like
first i set an id to div as mainDiv .
then on script i call like this

$("#mainDiv :input").each(function () {
// inside this i call each variables
}


Now it is work fine..

thanks & regards,
Anupama

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