Quantcast
Channel: How to select the text inserted into a text field with jQuery? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by KyleMit for How to select the text inserted into a text field with...

Alternatively, in Vanilla JS:var cityName = document.getElementById('search-field-id').value

View Article



Answer by Antonis Koursoumis for How to select the text inserted into a text...

Given that your input field has an id equal to field_id:var text = $('#field_id').val();

View Article

How to select the text inserted into a text field with jQuery?

I created a search form where the user has to insert the name of a city.I associated the JS file to a JSON file containing the name of several cities.I want to display the whole list where a specific...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images