![]() |
HTML Parameters to document.form.submit()
I have a submit similar to this <input type="submit" class="asdf"....
How can I use the "class=""" with javascript's document.form.submit() or do I have to use some other trick? |
Why don't you just use the name or id?
|
What name? What id?
I now know that I need the "name=""" attribute included with it. And I do type "document.myformname.submit()" not "document.form.submit()". |
you want submit your form from jscript code?
then you don't need class property!(and you can't use it for submit method) class is a UI property for HTML elements. |
Quote:
|
Quote:
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'; |
| All times are GMT -5. The time now is 1:31 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC