I need to generate url to be able to load some content in html element.
$('#editSchool').click(function () {
var id = $(this).attr('data-id');
Problem starts here when I try to insert id value for id parameter
$('#educationDialog').load("{{ path('_education_edit', {'id': id}) }}", function () {
$('.closeDialog, #person_education_form_cancel').click(function () {
$('#addSchool').trigger('click');
});
});
});
Do you have some solution, if this is possible?