2020-03-23から1日間の記事一覧
Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails えー、なんで。。って思ってたらマイグレーションでこんなコードを書いてました。。 foreign('foo_id')->references('id')->on('foos') ->foreign(…
<input type="text" name="foo[]"> こんな感じの要素をjQueryでセレクタ指定したいとき、 $('input[name=foo[]]') ではダメ。 ダブルクォーテーションで囲うか、 $('input[name="foo[]"]') バックスラッシュを2つをブラケット [] の前に付ける。 $('input[name=foo\\[\\]]')