私のコードは次のとおりです
$(document).ready(function() {
// this is a button to add the form to the DOM tree.
$("#submitPara").click(function() {
$("body").append('<form id = "dimensionAndObjects" action = "#"></form>');
some code to add some input fields, omitted...
$('#dimensionAndObjects').append('<p><input id = "submitDO" type = "submit" value = "submit"></input></p>');
return true;
});
$('#dimensionAndObjects').submit(function() {
alert("haahhhahhaha");
return false;
});
});
アラート情報が表示されないため、送信機能が動作していないようです。送信機能をクリック機能の中に入れても機能しません。どうしたの?私は jQuery の初心者です。よろしくお願いします。