Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
Are you saying the form is not being submitted? Or are you saying the form's "onsubmit" method isn't being called? If the latter, you'll need to call reportTypeChange from within the selectSubstances method.
ravindra patil
Ranch Hand
Joined: Sep 01, 2006
Posts: 196
posted
0
yes onSubmit is not getting called , but how can i call that reportTypeChnage() from selectSubstance() as in selectSubstance() i am submitting the form.
should i call that method after my submit method ??
function even2()
{
document.getElementById("elem").style.display="block";
}
</form>
so the problem is when even2 gets call it show that HTML elem
but when i clicks on sel1 form is geeting submitted which doesnot retaind my data as form gets submitted
so itied to call even2 on onSubmit form but its not getting called
even i tried to call both even1 and even2 on onchange of sel1 but it tmeporary shows it and again disappers
If you submit the page everything gets reset, you need to select the values on the server.
Please edit your last post to use code tags. I did your first post and you can see how pretty it looks!
Click the edit button in your post, select the code in the textarea with your mouse, and click the code button in the toolbar. It is not that difficult.
Eric
ravindra patil
Ranch Hand
Joined: Sep 01, 2006
Posts: 196
posted
0
.
ravindra patil
Ranch Hand
Joined: Sep 01, 2006
Posts: 196
posted
0
Ok i have put the code as per your demand
Now the problem is when even2 gets call it show that HTML elem
but when i clicks on sel1 form is geeting submitted which doesnot retaind my data as form gets submitted
so i tied to call even2 on onSubmit form but its not getting called
even i tried to call both even1 and even2 on onchange of sel1 but it tmeporary shows it and again disappers
i just want to retained my data