How To Get Select Box Value With jQuery – JOGET

how-to-get-select-box-value-with-jquery-in-joget

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.

Normally if we want to get a value for a field we can use Joget JavaScript API to get the value. If you are not aware of the Joget JavaScript API Please check them. They have plenty of APIs to get value from the fields.

And Also we have a common practice that we used to use jQuery with fieldName and val() or text() ;

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 "company_id" .

 

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.

Okay Note here is you can get the value with html() , text() , val() .

I hope it helped you. If you have any questions or comments please comments below.

 

 

Leave a Reply

avatar
  Subscribe  
Notify of