using css, enter the input field on the right, say 20px. Then make an image (X) [and let your image be 20 pixels wide and called clear.png], enable <img class="clearingImage" src="/imagepath/clear.png" style="position:relative;left:-20px;" /> <img class="clearingImage" src="/imagepath/clear.png" style="position:relative;left:-20px;" /> right after your tag and then in javascript block you will say
$('img.clearingImage').click(function () { $(this).prev().val(''); });
keeping in mind that the image is on the same line immediately after the input tag
Raine source share