CSS Button :focus pseudo class?

The only way I can think of doing this is with jQuery, or some sort of Javascript. Here's how I would do it: I would control it via a class (let's call it ". SelectedBorder").

Then on click, grab all your buttons that you have, and turn off the borders for all of them, then just add it on the clicked one. Here's an example.

The only way I can think of doing this is with jQuery, or some sort of Javascript. Here's how I would do it: I would control it via a class (let's call it ". SelectedBorder").

Then on click, grab all your buttons that you have, and turn off the borders for all of them, then just add it on the clicked one. Here's an example: //first you grab the click event for the button(s) $("#buttons"). Click(function(){ //we remove all the borders from all the buttons $("#buttons").

RemoveClass("selectedBorder"); //Now we add the border to the button that's been clicked $(this). AddClass("selectedBorder"); }); That should do the trick. Just add that in a javascript tag or an external file and include it, and you should be good to go.

Hope that helps.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions