Skip to content

Instantly share code, notes, and snippets.

@pebriana
Created October 18, 2016 04:56
jquery id selector wildcard
$(document).ready(function() {
$("[id^=hideshow]").click(function() {
var index = parseInt($(this).attr("id").replace('hideshow',''), 10);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment