correct jquery attr test