I want to change the draggable state of leaflet marker on some event. Now, we use marker.options.draggable to get the draggable state of that marker. However, I want to set/change that draggable state in some event.
marker = L.marker([lat,lng],{draggable:true});
draggable_state = marker.options.draggable;
But, below is not working:
marker.options.draggable=false;
How can achieve this?