0

Bootstrap ポップオーバーを切り替えようとしています。

JS コード:

$('#post_description').popover('toggle')

フォームコード:

    <%= f.input :description, :label => 'Description', :input_html => {:rows => '10', :class => "span8", "data-content" =>'Hey', "data-title" => 'TEXTILE'} %>

フィールドの上にマウスを置くとポップオーバーが表示されますが、カーソルをフィールドの外に移動すると消えます。クリックしたときにポップオーバーを表示して、2 回目のクリックで閉じるべきではありませんか?

ありがとう!

4

0 に答える 0