Home Forums General Issues checkbox html value


checkbox html value

    • 5vlast

    • July 22, 2013 at 10:06 pm

    Hello, thanks for the great plugin
    i have some li i add it as checkbox Values why can’t use HTML CODE AS value in checkbox
    example <li class=wvc domain>Sometext : MYCHOOSE

    • Elliot

    • July 23, 2013 at 3:40 pm

    Hi @5vlast

    All values that are entered into the choices of your field will appear as checkbox inputs.

    It is unususaly to place HTML as a value as this would break the checkbox input validation standards.

    I would advise you to remove the HTML for the values.

    May I ask why you want the values to contain HTML?

    • 5vlast

    • July 23, 2013 at 4:58 pm

    Hello thanks for the replay πŸ™‚
    cos this li has different classes and contents tried allot of ways to defend css to the same li.
    and different posts may it content some of this li
    so this why i was traing to defend this li as html by choose box
    sorry if my english is bad not english talker

    • Elliot

    • July 24, 2013 at 12:25 pm

    Why not use the class names as the value:

    wvc domain

    This way, the value will display and save correctly. You can then echo this value into a li tag if needs be in the template code

    • 5vlast

    • July 24, 2013 at 4:41 pm

    Thank you for the replay seems i did not explain enough that i have about 20 li with different classes so each post will display some of this li some all of them so how i can defend display of this li in this way in the li where i do not choose it will not display only the class but not all the li so what i am trying it to display/hide all the li
    i hope i could better explain

    • Elliot

    • July 25, 2013 at 12:59 pm

    Hi @5vlast

    Perhaps you could include the code you are suing to interact with the checkbox field value

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.