01.
<select id=
"selop"
class
=
"selectpicker"
>
02.
</select>
03.
04.
function
fetch_select_province(val, getval)
05.
{
06.
$.ajax({
07.
type:
'post'
,
08.
url:
'ajax/fetch_data.php'
,
09.
data: {
10.
get_option:val
11.
},
12.
success:
function
(response) {
13.
document.getElementById(
"selop"
+getval).innerHTML=response;
14.
}
15.
});
16.
}