Skip to content

Instantly share code, notes, and snippets.

@ryonext
Created February 5, 2013 02:16
Show Gist options
  • Save ryonext/4711554 to your computer and use it in GitHub Desktop.
Save ryonext/4711554 to your computer and use it in GitHub Desktop.
jQueryのセレクタattrの使い方
<div class="btn" data-toggle="modal" href="#message_modal" id="select_target" target_id="1">aaa</div>
ここからtarget_idを抜く方法
$("#select_target").attr("target_id")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment