This is an edit check on a multiple select field for a search form.
When a selection is made in the multiple select field and the form is submitted, the empty()
function logs "USER MADE A SELECTION", that part works. However, if no selection is made, the empty()
function does not log "NO SELECTION MADE". If no selection is made in the field, won't the variables citySelectedValue
and citySelectedHTML
be null and/or undefined? I believe the script I found checks for that? Not sure if I setup my jsfiddle correctly. If not, let me know and I'll fix it: