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
function checkValue(){
var value = $('#doc_title').val();
if (value.length > 0) {
$('#doc_title').val("");
$('#doc_title').focus(); // To focus the input
}
else{
//do something
}
}