Getting the label as a usable value
Getting the label as a usable value
![mRender](https://secure.gravatar.com/avatar/14cf3cdcc9fdff6e7377c91b4eb8e758/?default=https%3A%2F%2Fvanillicon.com%2F14cf3cdcc9fdff6e7377c91b4eb8e758_200.png&rating=g&size=120)
If I have something like this...
label: "End Time:",
name: "endingtime",
type: "select",
options: [
{ label: "7:00 AM", value: 0 },
{ label: "7:15 AM", value: 15 },
{ label: "7:30 AM", value: 30 },
{ label: "7:45 AM", value: 45 },
How would I get the value of the label, not the value of the value?
If I wanted var endtime = editor.field( 'endingtime' ).val(); to be 7:00 AM Instead of 0.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Got it!