For example I do have a .className and an element tag. If the user did not clicks on that className or the element tag the alert will run.
Please correct my code:
var i = $("ul li");
if (!$(this).hasClass("className") || !$(this) == i) {
alert("Gotya!");
}
Thank you.
Do you wont the alert to run if element “className” or “ul li” is clicked?
Then you should use jquerys event click http://api.jquery.com/click/ and multiple selectors http://api.jquery.com/multiple-selector/
For example:
If that is not your question, please clarify.