dc_jt Posted May 24, 2007 Share Posted May 24, 2007 Hi I have the following code which works with IE but not in Firefox: <!-- function changestudent(){ document.getElementById('status').value = 'remove_image'; add_edit.submit(); } --> It is linked to a remove image button which when clicked submits and saves the form and then removes the image. It works in IE but not firefox, anyone know? Thanks Quote Link to comment Share on other sites More sharing options...
nogray Posted May 24, 2007 Share Posted May 24, 2007 try to add document infront of your add_edit document.add_edit.submit(); or If the form have an id <form name="add_edit" id="add_edit" ... you can use document.getElementById() document.getElementById('add_edit').submit(); 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.