Hi,
I'm working of webform which have multiple html controls.
html
- <div>
- <label for="ddlJobType">Job Categorylabel>
- <select id="ddlJobCategory" class="form-control" onchange="getselectedVal(this);">select>
- <label for="ddlJobType">Job Typelabel>
- <select id="ddlJobType" class="form-control" onchange="getselectedVal(this);">select>
- div>
What parameter should be send to the called function? is parameter 'this' an efficient way?
jQuery
- function getselectedVal(**what should be the argument type**){
- alert('dropdown option:selected').val();
- }
Bryian TanPosted Jun 4, 2018, 4:38 PM
Bryian TanPosted Jun 17, 2018, 5:55 PM
L APosted Jun 11, 2018, 2:32 PM