Sunday, 10 December 2017

php -

I have this
HTML



            class="btn-group">

class="btn btn-default" value="Red">
class="btn btn-default" value="White">
class="btn btn-default"
value="None">



This
with addition os some css gives this
resoult:



href="https://i.stack.imgur.com/8OVbR.png" rel="nofollow noreferrer"> src="https://i.stack.imgur.com/8OVbR.png" alt="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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...