Trying to count the number of input fields of the '.booked' class that are NOT empty (i.e. they have some kind of value entered.
For some reason this does not do this for me. Someone please spare me from my misery :)
$('input.booked:not(:empty)').length
source
share