Friday, 30 June 2017

php -

I have this HTML












This with addition os some css gives this resoult:



button group for input



I use this code to only allow one active:



 $(".btn-group > .btn").click(function(){
$(this).siblings().removeClass("active");
$(this).addClass("active");

});


But it is just visual, and when I try to input vía php POST (within a form) I don't get nothing.



If i change to type=radio, the PHP works fine, but it is uglier.



¿Any magical idea to make it work keeping it fancy?



The php code for testing is:







MegaUltraTest






Thank you.

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...