JQuery - If statement for Eform

JQuery - If statement for Eform

i am trying to populate a text box based on the outcome of a dropdown.

i am trying to populate a text box based on the outcome of a dropdown.

currently if i use:

$(document).ready(function () {
  //if Department is changed

i get "3" in the correct field so that's fine i know the field references are correct.

my scenario is i want to customise "Field27" based on the options in the dropdown ("Field9".

my existing code is:

$(document).ready(function () {
  //if Department is changed

//check is equal to planning if($("#Field9").val() == "Planning"){ $("#Field27").val(3); } else{ $("#Field27").val(4); }


}); });

can anyone advise why the if statement is not working as desired? it's not even populating 4 in the "else" statement

jquery forms

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Dedicated Jquery Developer

Are You Looking To Hire a jQuery Programmer? **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")**, a leading jQuery application development company, can help you build interactive front-end solutions to leapfrog the digital...

Forms and Events in jQuery | jQuery Tutorial | jQuery Training

This video on Forms and Events in jQuery will help you understand what are Forms and how you can create events on them in jQuery.

jQuery Simple Textarea Character Counter | jQuery Character Count

Download The File: https://drive.google.com/file/d/1xcBmP2tBXwGThV-FlnClWD08hFKO6cAL/view?usp=sharing Other PlayList: There is a complete playlist of JavaScript

jQuery / Plugin / jQuery Smooth Scroll

jQuery Smooth Scroll jQuery Smooth Scroll은 HTML 내에서 링크를 클릭하여 이동할 때, 부드럽게 이동하도록 만들어주는 플러그인입니다. GitHub : https://github.com/kswedberg/jquery-smooth-scroll Download : https://github.com/kswedberg/jquery-smooth-scroll/archive/master.zip 기본 사용법 다음처럼 문서 내에서 이동하는 링크를 가진 [...]

Dynamically Add/Remove Multiple input Fields and Submit to DB with jQuery and Laravel

In this tutorial, we will sho you how to dynamically add/remove multiple input fields and submit to database with jquery and laravel