Field attribute style syntax

Field attribute style syntax

bbrindzabbrindza Posts: 316Questions: 73Answers: 1

What is the proper syntax for the following. I am getting a JS console error. I'm basically applying multiple style formats to the field (ie. width and height).

{label: "Reviewed",
name: "ELOOKO",
attr: {maxlength:1,
style: "height:2px",
width:4px"}
},

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,449Questions: 26Answers: 4,975
    edited October 2017 Answer ✓

    Looks like you are missing a " in this line;
    width:4px"}

    Should be:
    width:"4px"}

    Kevin

  • bbrindzabbrindza Posts: 316Questions: 73Answers: 1

    Oh my. I must be going blind . Thank you for the second set of eyes.

This discussion has been closed.