Can anyone help me to write the code in java script. I am new to it.
I have the save button. When Save button is clicked which I presently configured like “<INPUT TYPE=button VALUE=”Save” ONCLICK=”savemethod()”>
I need to write the code so that when the save button is clicked, I need to set the form variable in savemethod() so that I can use that variable later in the code. After it sets the variable to something(either integer or true), I will write something like this:
If saveformvariable = true/1
then write to database (i mean upadte to database)
else Don’t update.
How can I set the Form variable when the button is clicked. Can soemone help me out plzzzzzzzzz…..It is a bit urgent…..Thanks a lot in advance.