I first worked with an a element and put onlick in the href parameter, this was the wrong way to do it, so I changed it and later on I had an idea that made everything really easy (designwise). I made a div (in most cases) and with jQuery I coded that if the div was clicked, some scriptwork should run, like this;
This seemed to be a good solution, but is it really? If it is, then there’s another problem.
When I click such ‘link’ more than once I begin to select/highlight elements on my page. Normal behaviour ofcourse, but how do I stop this?
Thank you for the reply!
But still, wouldn’t you have the same problem as I described in my first post? That you click the button more times and you select/highlight the text near the button?
I thought about disabling highlighting text, but that would mean the user wouldn’t be able to select anything at all. So, how do I do this?
It is; Handeling cookies, some image altering, creating animations and cross-browser support.
But my question was if you wouldn’t have the same problem (highlighting text and so on)? And what can I do about the problem?
You seem to like forcing this opinion on many people who come here for jQuery help, in a manner that doesn’t seem to fit in with how we try to help people here.
I hope that you can improve on how you help people here.