This is a migrated thread and some comments may be shown as answers.

Input field change event

1 Answer 255 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Hans asked on 03 Apr 2013, 05:23 PM
Hello,

Is there a way to capture a change event from a mobile input field?  I'm trying to recalculate values in a mobile view based on user input, but since the mobile input control is not the same as the web one, it doesn't work using the "data-change" attribute.

Thanks,
Hans

1 Answer, 1 is accepted

Sort by
0
Hans
Top achievements
Rank 1
answered on 03 Apr 2013, 05:34 PM
Answered my own question -- simply use the jquery change event, such as:

<input id="myInputField"/>

<script>
$("#myInputField").change(function() {
      // do something
});
</script>
Tags
General Discussions
Asked by
Hans
Top achievements
Rank 1
Answers by
Hans
Top achievements
Rank 1
Share this question
or