-4

I want to store input data from a select without refreshing page. I have this code:

<p class="inf" >   
    Select:
    <select id="chose" >
        <option value="0">choose citty</option>
        <option value="cluj">Cluj</option>
        <option value="bucuresti">Bucuresti</option>
    </select>
</p>

I want, if it's possible to use javascript. Thank you.

clav
  • 4,221
  • 30
  • 43
andrei.godea
  • 853
  • 1
  • 9
  • 9
  • 1
    It's possible; it's called AJAX. – j08691 Mar 28 '13 at 19:12
  • The answer you are looking for is here: http://stackoverflow.com/questions/647282/is-there-an-onselect-event-or-equivalent-for-html-select [1]: http://stackoverflow.com/questions/647282/is-there-an-onselect-event-or-equivalent-for-html-select – Ryan Goltry Mar 28 '13 at 19:19

1 Answers1

1

It is possible, you want a technology called AJAX. It allows for sending data back to the server without refreshing the page. The easiest implementation of this is jQuery's Ajax Method

CodePB
  • 1,736
  • 12
  • 19