Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="portSecW">
- <img src="X" alt="something here"></img>
- <img src="a" alt="something here"></img>
- <img src="b" alt="something here"></img>
- <div class="closeXbtn"><img src="g" alt="something here"></img></div>
- </div>
- $('#portSecW img:not(".closeXbtn")').click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW img').not('.closeXbtn').click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW img.not(".closeXbtn")').click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW a').children('img').click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW img').not(".closeXbtn img").click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW img:not(".closeXbtn img")').click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW').children('img').click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW img:not(.closeXbtn)').click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW img').click(function(){
- if($(this).hasClass('closeXbtn'))) { /* do something */ }
- });
- $('#portSecW img').not(".closeXbtn img").click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW > img').click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW > img').click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW img:not(:parent(.closeXbtn))').click(function(){
- alert($(this).attr("alt"));
- return false;
- });
- $('#portSecW img').click(function(){
- if($(this).hasClass('closeXbtn'))
- //Do some play
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement