I know how to get elements with a particular attribute:
$("#para [attr_all]")
But how can I get the elements WITHOUT a particular attribute? I try
$("#para :not([attr_all])")
But it doesn't work. What is the correct way to do this?
Let me give an example.
$("#para [optional]") <--- give me the fname element
$("#para :not([optional])") <--- give me the fname, lname, email (fname should not appear here)