I would like to submit a form from a leaflet popup to modify datas in a mysql db.
lyrClients.eachLayer(function(e){
if(e.feature.properties.IdClient==IdClient){
e.bindPopup("<form method='post' action='ajax/filldbclient.php'>First name:<br><input type='text' name='firstname' value='Your first name' ><br>Last name:<br><input type='text' name='RaisonSociale' value='Your last name'></form><input class='click' type='submit' name='submit' value='Sent'>" );
e.openPopup();
}
});
This does not work because as explained here click event seems to be disable in popup. But I did not found the way to make it works.. (I mean for a submit) Thanks by advance for your help.