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?

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');
| improve this answer | |
  • can you explain brief how to do this – 111 Sep 19 '19 at 10:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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