Я хочу пометить имена со страницы с помощью jquery, чтобы использовать их как переменные.
Пример:
Tags:
<title>Item Name</title>
<price>$10.00</price>
$tag_name[0] = first tag (this is where jquery code would go)
$tag_name[1] = second tag (this is where jquery code would go)
$item_array[$tag_name[0]][0] = "item name";
$item_array[$tag_name[1]][0] = "$10.00";
Как я могу получить фактическое имя тегов? Я знаю, как получить содержимое.