Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   * Copyright 2012 Google Inc.
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   * use this file except in compliance with the License. You may obtain a copy of
   * the License at
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
 package elemental.html;
 import  elemental.html.*;
 import java.util.Date;

FORM elements share all of the properties and methods of other HTML elements described in the element section.

This interface provides methods to create and modify FORM elements using the DOM.

 public interface FormElement extends Element {

Reflects the accept-charset  HTML attribute, containing a list of character encodings that the server accepts.
   void setAcceptCharset(String arg);

Reflects the action  HTML attribute, containing the URI of a program that processes the information submitted by the form.
   void setAction(String arg);

Reflects the autocomplete HTML attribute, containing a string that indicates whether the controls in this form can have their values automatically populated by the browser.
   void setAutocomplete(String arg);

All the form controls belonging to this form element.
Synonym for enctype.
   void setEncoding(String arg);

Reflects the enctype  HTML attribute, indicating the type of content that is used to transmit the form to the server. Only specified values can be set.
   void setEnctype(String arg);

The number of controls in the form.
   int getLength();

Reflects the method  HTML attribute, indicating the HTTP method used to submit the form. Only specified values can be set.
  void setMethod(String arg);

Reflects the name  HTML attribute, containing the name of the form.
  void setName(String arg);

Reflects the novalidate HTML attribute, indicating that the form should not be validated.
  boolean isNoValidate();
  void setNoValidate(boolean arg);

Reflects the target HTML attribute, indicating where to display the results received from submitting the form.
  void setTarget(String arg);
  boolean checkValidity();

Resets the forms to its initial state.
  void reset();

Submits the form to the server.
  void submit();
New to GrepCode? Check out our FAQ X