Previous Next
Tutorial: Label Improvement

In this lesson, we'll add some code to fine-tune the 'State Exemptions' label. Some states may use different terminology for this field, which we'd like to reflect in our form.

In addition, if the state has specific instructions for what goes into this field, we'll show that as title (tooltip) text for the input element.

index.html:
Javascript:

Result:

Try selecting different states, and noting the resulting state_exemptions_label text. If you hover the cursor over the state_exemptions input, you'll see instructions specific to each state.












Output


Previous
Next