I am using a simple event listener to get coordinates of any clicked point. But i want to control it from a checkbox inside another div to listen it or not. How can i disable this ? Code below;
Code:
var noteContainer = new NoteContainer({
	id: "coordinateOnClickUi",
	parent: document.getElementById("uiContainer"),
	title: "Menu",
	content:
		'<p><input type="checkbox" id="editle" onclick="startEdit()"/> Add Point</p>'
		
});
eventlistener;
Code:
function startEdit(){
if($('#editle').is(":checked")){

map.addListener(CLICK, function (evt) {
	var coord = map.pixelToGeo(evt.displayX, evt.displayY);
 
...

	infoBubbles.openBubble(inf_content, coord );
        marker =  new nokia.maps.map.StandardMarker(coord, {
			draggable: true
		});
        map.objects.add(marker);
	
	// Clear the logger
	positionLogger.clear();
	
	// We now print the latitude & longitude to the logger
	positionLogger.log(
		"Clicked at position: <br />latitude: " + 
		coord.latitude + "<br /> longitude: " + coord.longitude);
});
}
                else
		{
			//???????????????????????
		}
}