I understand this is an easy question but for some reason this just isn\'t working for me. I have a function that is triggered everytime a drop down menu is changed. Here
If you are using jQuery, then you can use this:
// var doc_val_check = $('#doc_title').val(); - No need of this! if ($('#doc_title').val().length > 0) { $('#doc_title').val(""); }