View Single Post
Old Dec 9th, 2006, 11:16 AM   #6
BlackDal
Newbie
 
Join Date: Feb 2006
Posts: 12
Rep Power: 0 BlackDal is on a distinguished road
Quote:
Originally Posted by Arevos View Post
Well, you can, but it's easier to use the id or form name.
yes I know it! for submiting a form should use ID of form but no class property
class property say which class of styles (style tag or CSS file) should apply on element. when I don't understand why(and what) you use class property in submit method

Mr/Mrs commodore you can submit your form by a code like this:
document.FormName.ElementID.value = 'ElementValue';
//.. and for other form elements
document.FormName.method = 'Method Type';
document.FormName.action = 'Action Target';
document.FormName.submit(); //this method gives no parametere
BlackDal is offline   Reply With Quote