How to change placeholder value using JS

How to change placeholder value using JS

Short Intro:

Change placeholder value

Problem:

Can’t translate placeholder value.

Solution:

Paste this script

<script type=”text/javascript”>
document.getElementsByClassName(‘qodef-search-form-field’)[0].placeholder=”Zoeken”;
</script>

for the class ‘qodef-search-form-field’ inspect your form and you will see the class name of that form.

Contact Details

More solutions

by ilias

You’re using JetFormBuilder and want to make sure users are at least 18 years old based on their birthday input.

by ilias

Roweij Specerijen wanted to have a filter that can choose number of products display per pagination

by ilias

This article will show you how to add dynamic code to your templates using the Elementor Shortcode widget and custom PHP code.