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 TanRank #396 · 6.3K reputationPosted Jun 4, 2018, 12:38 PM EDT
L A180 reputationPosted Jun 11, 2018, 10:32 AM EDT
Bryian TanRank #396 · 6.3K reputationPosted Jun 17, 2018, 1:55 PM EDT