Thursday, 5 May 2016

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

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...