Ajax returns all expected html result from php code, except the javacript and jQuery inside the "script" tags
var frm = $('#cell');
frm.submit(function (ev) {
$.ajax({
type: "POST",
type: frm.attr('method'),
url: frm.attr('action'),
data: frm.serialize(),
success: function (html) {
//Create jQuery object from the response HTML.
var $return=$(html);
//Query the jQuery object for the values
var oneval = $return.filter('#cellWidthSlider').html();
alert(oneval);
$("#cellWidthDiv").html(oneval);
}
});
ev.preventDefault();
});
I have tried to append to head, but the jQuery code would execute only - before the elements.
var $response=$(html);
$("head").append($response);
var oneval = $response.filter('#cellWidthSlider').html();