0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【KARTE】接客に含まれるhtml要素に向けてclickイベントを発火させたい!

Posted at

KARTE上で接客を実装するにあたり、試行錯誤したので備忘録

想定する読者

KARTE / jqueryに詳しくない人向け

何がしたいか

接客に含まれる要素にクリックイベントを付与したい

問題

  • cssで指定した要素が操作できない
  • .on('click')でシンプルに発火しない

どうしたのか

  • karte側で用意されているstylesオブジェクトを利用した

  • documentオブジェクトに直接定義した

jquery

    $(document).on('click', "."+styles["className"], function(){
        clickMethod();
    });
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?