Created
January 16, 2016 20:05
-
-
Save nick1m/80eba645bb944aeb21b9 to your computer and use it in GitHub Desktop.
автоматически присваиваем ID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ОБРАБОТКА КОНТЕНТА | |
// автоматически присваиваем ID кнопкам для скрытого текста и самому тексту | |
var id_hide_button=0, id_hide_text=0; | |
$(".hide-text").attr("id", function () { | |
var id="id_hide_text-" + id_hide_text; | |
id_hide_text++; | |
// console.log(id); | |
return id; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment