0

I have a input box in inside this input this below code is written,

data-bind="value: Report.viewModel.report().Filters()[6].Value, valueUpdate: 'afterkeydown'"

when ever I pass value from console using

document.getElementById("filter121").value="Sample text"

every time I click on submit it clear the recent value and propagate with the previous one.

<input type="text" id="filter119" class="nmn-control min-width-100" name="filter119" control-type="0" data-bind="value: Report.viewModel.report().Filters()[6].Value, valueUpdate: 'afterkeydown'">

please help me, thanks in advance.

Addis
  • 2,480
  • 2
  • 13
  • 21
Romio
  • 1
  • What are you trying to do? Can we see more of your code? – Addis Feb 22 '20 at 19:26
  • This is my full input box html code i want to automate this input box from console – Romio Feb 22 '20 at 19:29
  • how to call data-bind keydown event from console or web browser code – Romio Feb 22 '20 at 19:32
  • I don't see any `submit` in your code – Addis Feb 22 '20 at 19:34
  • I have separate submit button when after click on the button , value was removed and the , it certainly take the previous ones that was saved before. – Romio Feb 22 '20 at 19:37
  • How can we know where the problem lies when you have a separate code and the error happens to be there. please check https://stackoverflow.com/help/how-to-ask. – Addis Feb 22 '20 at 19:40
  • Anyways, put `event.preventDefault()` inside the event handler for the button. – Addis Feb 22 '20 at 19:42
  • Does this answer your question- https://stackoverflow.com/questions/35988724/value-disappears-after-click-event?noredirect=1&lq=1 – Addis Feb 22 '20 at 19:46
  • Does this answer your question? [Value disappears after click event](https://stackoverflow.com/questions/35988724/value-disappears-after-click-event) – Addis Feb 22 '20 at 19:47

0 Answers0