I\'m trying to select all elements that have a data-go-to attribute that is not empty.
data-go-to
I\'ve tried $(\'[data-go-to!=\"\"]\') but oddly enou
$(\'[data-go-to!=\"\"]\')
I'm not sure about a simple selector, but you could use filter():
filter()
$('[data-go-to]').filter( function(){ return ($(this).attr('data-go-to').length > 0); });
JS Fiddle demo.
References: