What I would like to achieve: user selects with mouse "ab", click button(input type=button) which remove style from selected span/spans. Similar behavior like it is in TinyMCE.
Yes, but posted on the other site. Is it badly that I am looking answer in many places?
Yes, it is badly. If you post in multiple forums you will find that you may not get an answer in any of them. People do not want to waste time answering a question when it has perhaps already been answered elsewhere.
There are few things in forums more irritating than taking the time to unsnarl someone's markup, javascript and css, figure out the fix, and post it only to find you've wasted your time because a duplicate post in another forum has already been answered.
This prohibition on cross-posting is a rule in almost every forum.
Yes, it is badly. If you post in multiple forums you will find that you may not get an answer in any of them. People do not want to waste time answering a question when it has perhaps already been answered elsewhere.
Ok. So, is there any time limit I have to wait, before I ask a question on other forum? Because without answer in one place, I look for other source of possible answers...
I don't think the answers at StackOverflow address the question, really.
Each of those answers work if you click on *ONE* <span>, and they affect the clicked-on span.
But that's not what was asked for: He wants to be able to select ANY NUMBER of <span>s (that is, have them appear as selected...reverse video display, etc.) and *THEN* click on a button to have the styles *ALL* changed.
I think that's a much harder problem than the simplistic answers given in that other forum. I'm not sure there *is* an answer that works cross-browser.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
I don't think the answers at StackOverflow address the question, really.
Thank you Old Pedant! You are completely right - I am asking for solution for unanswered part. That is punchline I was heading to in discussion with Philip M.
Quote:
Originally Posted by Old Pedant
I think that's a much harder problem than the simplistic answers given in that other forum. I'm not sure there *is* an answer that works cross-browser.
Thank you for your answer! In this case, I think that I have to rethink my project.