Re: [Bootstrap] Hidden input messing with checkbox

Mariano Martinez Peck <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <CAA+-=mUv-+U0CDMwtr6SYYZifx8YmTgmgDRzdpNuPiSkwmHW5Q@mail.gmail.com>
Hi Cyril,

It would be nice if you can paste your seaside render code besides the
resulting html.

Cheers,

On Thu, Nov 3, 2016 at 7:05 PM, Cyril Ferlicot D. <[email protected]>
wrote:

> Hi!
>
> I am using bootstrap for a university project and someone of my team is
> making mockups and I reproduce them with Seaside. But I have a problem
> with checkboxes.
>
> He gave me this code:
>
> <div class="checkbox">
>   <input type="checkbox" id="question1Answer1">
>   <label for="question1Answer1">
>     Aenean semper rutrum nisi.
>   </label>
> </div>
>
>
> But seaside generate this:
>
> <div class="checkbox">
>   <input type="checkbox" name="10" id="question1Answer1">
>   <input type="hidden" name="11">
>   <label for="question1Answer1">
>     Aenean semper rutrum nisi.
>   </label>
> </div>
>
>
> Because of the hidden input I cannot check the checkbox. If I remove it
> in the DOM, I can.
>
> I think I must not be the first to have this problem. Does someone have
> a workaroud?
>
> Thanks!
>
> --
> Cyril Ferlicot
>
> http://www.synectique.eu
>
> 2 rue Jacques Prévert 01,
> 59650 Villeneuve d'ascq France
>
>
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


-- 
Mariano
http://marianopeck.wordpress.com

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.