0

私はこのスニペットを使用しています:

onmouseover="this.title=this.options[this.selectedIndex].title"

ドロップダウン メニュー テキストにタイトルタグを追加できるようにします。

<form name="searchform" onmouseover="this.title=this.options[this.selectedIndex].title" onsubmit="return doSearch();" accept-charset="', $context['character_set'], '">
<input class="search_input" type="text" name="search" value="" />
<input class="search_button" type="submit" name="submit" value="" />
<select class="search_select" name="sengines" onchange="return saveOption();">
<option value="?action=search2;search=" title="Full forum search">Forum</option>

ブラウザツールで確認したときに表示されるエラーは

Uncaught TypeError: Cannot read property 'undefined' of undefined at HTMLFormElement.onmouseover 
4

1 に答える 1