# Help monitoring 'value' attribute of invisible element

**URL:** <https://forums.distill.io/t/help-monitoring-value-attribute-of-invisible-element/1114>\
**Category:** Help and Support\
**Created:** [August 16, 2022, 7:07pm UTC](https://forums.distill.io/t/help-monitoring-value-attribute-of-invisible-element/1114 "2022-08-16T19:07:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bicergalerts1](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/f05b48/32.png) [@bicergalerts1](https://forums.distill.io/u/bicergalerts1)\
**Post date:** [August 16, 2022, 7:07pm UTC](https://forums.distill.io/t/help-monitoring-value-attribute-of-invisible-element/1114/1 "2022-08-16T19:07:05Z")

</div>

I’m trying to monitor the value attribute of an invisible element on an(y) Amazon item page (in addition to a few text elements, I have that part covered). It should be very similar to [How to track changes to anchor tag's href](https://forums.distill.io/t/how-to-track-changes-to-anchor-tags-href/265), which I’ve read multiple times, but I’m still having a hard time adapting it to my needs and getting it to work. The javascript for what I’m looking to monitor is below, I’ve also provided a target webpage, can anyone please help me with this?

document.getElementById(‘ASIN’).getAttribute(‘value’)

> **[Amazon.com: Apple AirPods (2nd Generation) Wireless Earbuds with Lightning...](https://www.amazon.com/Apple-AirPods-Charging-Latest-Model/dp/B07PXGQC1Q)**
>
> Buy Apple AirPods (2nd Generation) Wireless Earbuds with Lightning Charging Case Included. Over 24 Hours of Battery Life, Effortless Setup. Bluetooth Headphones for iPhone: Electronics - Amazon.com ✓ FREE DELIVERY possible on eligible purchases

On this particular page the value attribute of this element should be B07PXGQC1Q

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [August 17, 2022, 4:53pm UTC](https://forums.distill.io/t/help-monitoring-value-attribute-of-invisible-element/1114/2 "2022-08-17T16:53:28Z")

</div>

Following JavaScript should work using jQuery:

`$('body').text($('#ASIN').attr('value'))`

---

<div class="post-metadata">

**Author:** ![bicergalerts1](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/f05b48/32.png) [@bicergalerts1](https://forums.distill.io/u/bicergalerts1)\
**Post date:** [August 17, 2022, 11:03pm UTC](https://forums.distill.io/t/help-monitoring-value-attribute-of-invisible-element/1114/3 "2022-08-17T23:03:56Z")

</div>

I’m still getting the same error I was getting yesterday, the visual selector page is returning [object Object] and the monitor shows an EXCEPTION error saying callback is not defined. Can you please post the full config that you got to work for this?

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [August 18, 2022, 12:11am UTC](https://forums.distill.io/t/help-monitoring-value-attribute-of-invisible-element/1114/4 "2022-08-18T00:11:04Z")

</div>

There was a problem with quotes that hadn’t noticed earlier. Note that difference between in quotes in the following two lines:

`document.getElementById(‘ASIN’).getAttribute(‘value’)`  
`$('body').text($('#ASIN').attr('value'))`

I updated the post to use the correct quotes. Can you try again?

---

<div class="post-metadata">

**Author:** ![bicergalerts1](https://forums.distill.io/letter_avatar_proxy/v4/letter/b/f05b48/32.png) [@bicergalerts1](https://forums.distill.io/u/bicergalerts1)\
**Post date:** [August 26, 2022, 11:39pm UTC](https://forums.distill.io/t/help-monitoring-value-attribute-of-invisible-element/1114/5 "2022-08-26T23:39:30Z")

</div>

yep that was it, thank you

---

<div class="post-metadata">

**Author:** ![ajitk](https://forums.distill.io/letter_avatar_proxy/v4/letter/a/ec9cab/32.png) [@ajitk](https://forums.distill.io/u/ajitk)\
**Post date:** [August 29, 2022, 9:22am UTC](https://forums.distill.io/t/help-monitoring-value-attribute-of-invisible-element/1114/6 "2022-08-29T09:22:24Z")

</div>

Great, thanks for the update!
