<input onclick="more_posts()" id="show_more" count_show="36" count_add="36" type="button" value="Показать еще" />
<script>
function more_posts() {
var btn_more = $(this);
var count_show = parseInt($(this).attr('count_show'));
var count_add = $(this).attr('count_add');
btn_more.val('Подождите...');
alert(this.count_show);
</script>
<input onclick="more_posts($(this))" id="show_more" count_show="36" count_add="36" type="button" value="Показать еще" />
<script>
function more_posts(t) {
var count_show = parseInt(t.attr('count_show'));
var count_add = $(this).attr('count_add');
t.val('Подождите...');
alert(count_show);
}
</script>