# Get element instance

**URL:** <https://community.weweb.io/t/get-element-instance/14908>\
**Category:** Ask us anything\
**Created:** [December 11, 2024, 10:32am UTC](https://community.weweb.io/t/get-element-instance/14908 "2024-12-11T10:32:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolatoledo.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/nicolatoledo.dev/32/10522_2.png) [@nicolatoledo.dev](https://community.weweb.io/u/nicolatoledo.dev)\
**Post date:** [December 11, 2024, 10:32am UTC](https://community.weweb.io/t/get-element-instance/14908/1 "2024-12-11T10:32:59Z")

</div>

i want to access an element instance to check the onBlur input property to show or hide a text, is for input validation, is it possible? what is the best way?

now i can only access the text instance, i want to acces the test input instance inside the text conditional rendering

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/4/4dc4bf605124d739045fe0649051150fc343b29c.jpeg)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [December 17, 2024, 12:35pm UTC](https://community.weweb.io/t/get-element-instance/14908/2 "2024-12-17T12:35:57Z")

</div>

Hey @nicolatoledo.dev 👋

I think you’ll need to emit an event from test input and react to that event in your error empty test: [Component events | WeWeb Documentation](https://docs.weweb.io/components/component-events.html)

Can you give it a try and let me know if it helps?
