myfit 0 Light Poster

Hello every one, I want to select a image and preview an image before I click button Upload, I can do it and it done but I want to have a event cancle select this file by click on <a></a> or click on button, it may be look like post status with attach image in facebook, so I don't known how to make it, I will try use button reset but it don't accordance with required. I hope to recieve some advice or guide to make it, thank for read.

<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<label for="avatar">Select Image:</label>
<input id="avatar" name="avatar" type="file">
<a href="">Click to cancle Select</a>&nbsp;&nbsp;
or
<input type="button" value="Click to cancle Select" /></button>
</body>
</html>

Here is picture demo
Click Here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.