Change event snippet on width of edge

Created: 3 years ago  Author: Md Mahfoozur Rahman

id="egWidth" min="2" value="2" step="1" max="15">

$("#egWidth").change(function(){
//do something
var egWidth = parseInt($(this).val()); //console.log(egWidth);

var alledges = edges.get();        

alledges.forEach(function(e) {
		edges.update({
		id: e.id,
		width: egWidth
	});        
});            

$.ajax({
		url: APP_URL+'process/ajax/new/edges/width_edges.php',
		type: 'post', 
		data: {width_edges:egWidth},
		success: function (data){
			edges.update(jQuery.parseJSON(data));
			saveNwJson();
		}
});                                                        
});

Topic: Edge  Topic Creator: Md Mahfoozur Rahman


Comments

No comments yet.

Related Posts

adjusted width and it broke - DONE 4hr (30-08-22)

Created: 3 years ago  Author: Md Mahfoozur Rahman