Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
モデルの ID にデータ型 int を指定しましたが、javascript を呼び出して警告すると、結果は表示されず、代わりに [オブジェクト オブジェクト] が表示されます。その ID の値を表示したいです。それに関するヒントは役に立ちます
try this: $(function () { $('form').submit(function () { $.ajax({ url: this.action, type: this.method, success: function (result) { $('#elementid').html(result); } }); return false; }); }); $('#elementid').html(result)
[object object] の代わりに価値を与えます。