Friday, 30 December 2011

multiple Attribute

The multiple attribute can be selected for an input field which has  multiple values .
Note: The multiple attribute works with the  <input> types: email, and file.

Syntax

Select images: <input type="file" name="img" multiple="multiple" />

Example

  <!DOCTYPE html>
<html>
<body>

<form action="demo_form.asp" method="get">
Select images: <input type="file" name="img" multiple="multiple" />
<input type="submit" />
</form>
<p>Try to select more than one file .</p>

</body>
</html>

No comments:

Post a Comment