i use $.parseJSON to get data from a link.
My output link have
{"status":"ok", "message":'<form><input type="text" name="" value=""> </form>'}
And i want to append the "message" to my content.
$.ajax({
type : "POST",
url : "mylinl.php",
data : reservationForm.serialize(),
success : function(result) {
var data = $.parseJSON(result);
var result = data.status;
var message = data.message;
if (result == 'ok') {
$('#mycontent').html(message);
} else {
alert('Error Message: ' + message);
}
},
So i want to get the message : <form><input type="text" name="" value=""> </form> from my link and ouput to my #mycontent. is that possible?
Sorry for my bad english
<form>...</form>part<input name="somename">tag{"status":"ok", "message":"<form><input type=\"text\" name=\"\" value=\"\"> </form>"}