it is not working under IE 5, 6, 7, 8, 9, 10, 11, 12....
I've changed it a little bit and instead of adding to Object class prototype I'm adding it as member to any object which needs this hook. But IE still doesn't work.
Is there any known cross-browser solution for this?
P.S. I remember there was a jQuery upcoming project which would allow users to bind object to form and by changing one other will change automatically I wonder whats that project name and how they change input value when object member value changed.
Check out my menu bar. Don't be afraid it's called winmenu because at the first version it was only looking like windows menu bar now it can be customized via options to look how you want it to look, it can use jQuery UI classes and fix any jQuery-UI designed site.
Currently I'm experimenting with jQuery a lot and I had some problem which I solved but not sure whether it is right or wrong solution:
Lets say you want to have lots of "div"-s and want to have description assigned to them and on hover show their description. You can do this in lots of different ways but main question is where to save descriptions for div-s
1. One way is to make { id => desc } mapping in JS and for each div take its description
2. Second way is to assign each div-s description to it's data, $('#myDiv').data("desc", desc);
these two ways are making my JS code larger and uglier
3. Third way is to have <p class="description">My description here</p> inside every div, hide them on document.ready() then use their text when needed. This solution is actually best I could come up with until I found that you can do 4th solution. Only minus here is that if client doesn't have JS enabled your web-page become unreadable
4. Use non-existing attributes <div id="myDiv" description="My description here"></div>. In this case to get description you just need to get div-s attribute myDesc = $("myDiv").attr("description"); this solution is like 2nd one but you don't need to have all that text in your JS code.
I couldn't found any problems with 4th solution, but either didn't see anybody doing this. Is there anything wrong with it or no? Can I use that solution for my project or is there any other easy/beautiful ways to solve this problem?