# Airport Designator

**URL:** <https://forum.kirupa.com/t/airport-designator/636328>\
**Category:** programming\
**Created:** [March 29, 2017, 7:43pm UTC](https://forum.kirupa.com/t/airport-designator/636328 "2017-03-29T19:43:39Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [March 30, 2017, 3:46pm UTC](https://forum.kirupa.com/t/airport-designator/636328/7 "2017-03-30T15:46:09Z")

</div>

For the search button and input field, taking a few steps back, what you are trying to do is use JavaScript to access a value stored on an HTML element. That is where the DOM APIs come in really handy. All you really need is a way to identify the HTML element, and then you need a way to read some property on the element that represents the text to display. All of this needs to happen when a button gets clicked.

The code here covers all of that, though for a different example: [PHP field validation](http://forum.kirupa.com/t/php-field-validation/636291/5?u=kirupa) Let me know if that helps 🙂

Cheers,  
Kirupa

---

_[View the full topic](https://forum.kirupa.com/t/airport-designator/636328)._
