Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am trying to make this content specific, so as you said anything could be a target. I don't want to affect the site logo that links back to the home page that would be stupid, so thanks for pointing that out. It will have to have an id or class attachment. I am using this with 1.11 jQuery. It worked in jsfiddle. Maybe not removed? maybe depreciated? I'll need to figure out how to do this a different way. Thanks for pointing that out.
On the second point. I was under deadline to get something and I was a frenzied mess. When I first started this I didn't even know what modal was so my searches were fruitless and like I mentioned to the first poster, when I did find a few examples, I tried to adapt then to my code and none worked for me. So I coded this up in about three hours to get business folks off my back :)
Very good feedback and this gets me thinking beyond my simple drop it. I don't have many websites that use this code but more now than before and no other modal example was simple that met my needs hence this project. I never thought about making it trojan-style but that is exactly what I will aim for. Thank you for the response!
Hey thanks! I will look into those. Lo-Dash looks interesting. I have heard of _Underscore.js but I have not used either. I will make a list of these tool-kits you suggest and start looking at how I can leverage them.