1

Here i am change city and zip code value set by jquery

but

<input class="input-text" type="text" data-bind="
value: value,
valueUpdate: 'keyup',
hasFocus: focused,
attr: {
    name: inputName,
    placeholder: placeholder,
    'aria-describedby': noticeId,
    id: uid,
    disabled: disabled
}" name="city" placeholder="" aria-describedby="notice-XJCWJ1B" id="XJCWJ1B">

as per code valueUpdate by keyup so how can i update value of city and zip code without enter anything in that field using jquey?

1 Answer 1

0

I just trigger the keyup event so that validation error is not generated

write this code after set value of city and zip code

like this

jQuery('#id').trigger('keyup');
1
  • can you explain brief how to do this Sep 19, 2019 at 10:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.