Hi, welcome to the practice house. In this tutorial, we will learn how to get the value from a select box in jQuery for Joget Select Box.
And Also we have a common practice that we used to use jQuery with fieldName and
However, still, it seems too hard to get value from a select box. So in this tutorial, I will share with you how to get the value from a select box using jQuery in Joget.
1. How To Get Select Box Value In The Form
okay, let’s understand the scenario. we have a select box that is named as
var cId = "company_id";
var companyId = $("select[name="+accId+"] option:selected").val();
2. How To Get Select Box Value In Grid Form
yes sometimes it’s important for us that a user has selected some value in the form and based on that value we need to query or we need to display some values in our grid form. So now we will learn how to get Select Box Value in the grid form.
let dep = "department";
let depVal = $("select[name="+dep+"] option:selected", window.parent.document).val();
Okay Note here is you can get the value with
I hope it helped you. If you have any questions or comments please comments below.
I love to explore new technologies. If you like my tutorials please share your thoughts about my work.
Check out my YouTube Channel For Video Tutorials.
To Hire Me Please Contact Me Through Social Media or https:www.amialif.com
If you want to help others by doing donation please Donate To These Charities.
You also can connect with me via social media. Thanks