These are chat archives for filearts/plunker

30th
Aug 2017
Cam
@Cam0505
Aug 30 2017 01:28
Hey, how do I connect my plnkr to an sql database?
ChrisRen
@chrisren86_twitter
Aug 30 2017 06:32
You can not, You should use online database like mongolab instead.
EndikaTL
@EndikaTL
Aug 30 2017 11:26
Hi
I started using Silvio Moreto ´s selectpicker in a project and I m facing a difficult
when I click in edit a client on my client list form, other form loads with the data of that client, but the selectpicker is not working fine
The behaviour sould be like this:
A) selected territorie loads in provincia selectpicker
B) municipio selectpicker loads all the zones of the territorie
EndikaTL
@EndikaTL
Aug 30 2017 11:31
C) municipio selectpicker should show client ´s zone
A and B are working
But not C
I share my code
var provinciaID=data.idprovincia;
var municipioID = data.idmunicipio;
var data = {'provinciaID': provinciaID};
$.ajax({
type:'POST',
url:'../ajax/clientes.php?op=selectMunicipio',
data: data,
contentType: "application/x-www-form-urlencoded",
success: function(data){
$("#idmunicipio").html(data);
$('#idmunicipio').selectpicker('refresh');
}
            });
        $("#idmunicipio").val(municipioID);
        $('#idmunicipio').selectpicker('refresh');
provinciaID is territory and municipioID is zone
the AJAX gets all the zones from client ´s territory and puths them in #idmunicipio selectpicker
but when I want to programatically set the selected value on #idmuniciopio the content does not update
Can you help me please?