Editing $(document).on or added a event listener to each specific elements This edit will create a new revision. Your details (optional) Name Email (won’t be displayed; might be used for Gravatar) URL Test case details Title * Published (uncheck if you want to fiddle around before making the page public) Description (in case you feel further explanation is needed)(Markdown syntax is allowed) Are you a spammer? (just answer the question) Preparation code Preparation code HTML (this will be inserted in the <body> of a valid HTML5 document in standards mode) (useful when testing DOM operations or including libraries) <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"> </script> <div class="mod sortable-header" id="area-action"> <select class="first-child" name="itemlist" id="itemlist"> <option value="0" id="opt-0" class="first-child last-child"> ルート </option> <option value="24" id="opt-24"> foobar6 </option> <option value="25" id="opt-25"> foobar5 </option> <option value="26" id="opt-26"> foobar4 </option> <option value="27" id="opt-27"> foobar3 </option> <option value="28" id="opt-28"> foobar2 </option> <option value="13" id="opt-13"> foobar </option> <option value="11" id="opt-11"> foobarカテゴリを追加 </option> <option value="12" id="opt-12"> - foobar </option> </select> <input type="text" placeholder="カテゴリ名" class="text short" name="category_label"> <button class="add button last-child" type="submit"> 追加 </button> </div> <div class="pcat-0 lv-0 sortable-item" id="cat-24" style="margin-left: 0px;"> <span class="sort-tab" style="display: none;"> </span> <span class="item-label" style="display: none;"> <a href="/cgi-bin/mt/movabletype/mt.cgi?__mode=view&_type=category&blog_id=4&id=24">foobar6</a> </span> <span class="item-basename" style="display: none;"> <span class="item-basename-text"> foobar6 </span> </span> <span class="count" style="display: none;"> <a href="/cgi-bin/mt/movabletype/mt.cgi?__mode=list&filter=category_id&_type=entry&blog_id=4&filter_val=24">記事0 件</a> </span> <span class="item-ctrl" style="display: none;"> <a class="item-action edit-link clickable" href="#">名前を変更</a> <span class="item-action plus clickable icon-plus icon16 action-icon"> サブカテゴリを追加する </span> <span class="item-action delete clickable icon-delete icon16 action-icon"> カテゴリを削除する </span> </span> <div class="edit-form"> <input type="text" placeholder="名前" class="text short label" name="category_label"> <input type="text" placeholder="出力ファイル名" class="text short basename" name="category_basename"> <button class="rename button" type="submit"> 名前を変更 </button> <button class="cancel button" type="button"> キャンセル </button> </div> </div> Include JavaScript libraries as follows: <script src="//cdn.ext/library.js"></script> Define setup for all tests (variables, functions, arrays or other objects that will be used in the tests) (runs before each clocked test loop, outside of the timed code region) (e.g. define local test variables, reset global variables, clear canvas, etc.) (see FAQ) Define teardown for all tests (runs after each clocked test loop, outside of the timed code region) (see FAQ) Code snippets to compare Test 1 Title Async (check if this is an asynchronous test) Code $(document).on('keyup focusin focusout', 'input, textarea', function(e) { console.log(e.type + 'fired'); }) Test 2 Title Async (check if this is an asynchronous test) Code $('input,textarea').on('keyup focusin focusout', function(e) { console.log(e.type + 'fired'); })