<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
bind123();
});
function bind123()
{
$.ajax({
success: function() {
alert('WELCOME');
var $input = $('<input type="button" value="new button" />');
$input.appendTo($("body"));
var x = '<input type="button" id="actionbtn123" class="btn btn-success form-control" value="Add Details" />';
return [x].join('');
}
});
}
</script>
</head>
<body>
</body>
</html>
you never send off the AJAX call (missing URL).
write down the right method
Plenty of good examples are given at http://api.jquery.com/jquery.ajax/#entry-examples
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.