Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: What if you try to add ! before your second condition? $("img").each(function() { var img = $(this); if (!img.attr("alt") || img.attr("alt") === "") img.attr("alt", "some text"); }); }); |
The End.