Код: Выделить всё
if (itemsNeedAttention.length > 0) {
var itemType = "item";
// updateFilteredHtml(itemsNeedAttention, itemType);
$("#itemsNeedAttentionAlert").show();
$("#itemsNeedAttentionAlert").html("[b]" + itemsNeedAttention.length + "[/b] items have expired. [url=#]View the items[/url] that need your attention.");
}
Вот один из способов, которым я пробовал ...., который не работал: < /p>
Код: Выделить всё
$("#itemsNeedAttentionAlert").html("[b]" + itemsNeedAttention.length + "[/b] items have expired. [url=#]View the items[/url] that need your attention.");
Как я могу это сделать? Я сделал это нечетно в других случаях в моем коде без проблем (не с помощью OnClick) с IMG SRC, например. < /P>
Я также попробовал это: < /p>
$("#itemsNeedAttentionAlert").html("" + itemsNeedAttention.length + " items have expired. View the items that need your attention.");
< /code>
И мне сказали, что Updatefilteredhtml не является функцией. Но там, в том же файле JS.
Подробнее здесь: https://stackoverflow.com/questions/797 ... jquery-tag
Мобильная версия