Topic: How to solve Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'
L.Control.Form = L.Control.extend({ onAdd: function(map) { var el = L.DomUtil.create('form','range-field my-4 w-25'); el.appendChild(""); return el; }, onRemove: function(map) { // Nothing to do here } }); L.control.form = function(opts) { return new L.Control.Form(opts); } L.control.form({ position: 'bottomleft' }).addTo(maps);
Author: SHIVA
ANANYA
input=L.DomUtil.create('input','multi-range');
input.type="range";
input.id="multi1" ;
el.appendChild(input);
PARTH
Try use something like this -
input=L.DomUtil.create('input','multi-range');
input.type="range";
input.id="multi1" ;
el.appendChild(input);