LoginSignup
0
0

More than 3 years have passed since last update.

リストが二つ表示される時の解決方法

Posted at

このように書くとリストが二つできてしまいます。

jQuery
$('.modal').find('ul').append('<li><li>');

下記のように、二つ目の「li」を「/li」に修正(スラッシュを加える)と解決します。

jQuery
$('.modal').find('ul').append('<li></li>');

このように、一つだけ書いたつもりが二つ表示される時には、スラッシュが書かれてるか確認すると良いです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0