Form not submitting hidden input

前端 未结 1 1214
慢半拍i
慢半拍i 2021-01-27 05:35

There is hidden input in code which must be TRY by default and be changeable using dropdown box. Code: HTML:

相关标签:
1条回答
  • 2021-01-27 06:13

    As Backbone Binder can't see hidden changes in hidden inputs they mustn't change in page. It can be solved by adding trigger('change'); to the code:

    $('.js-listing-price-currency').val($(this).data('value')).trigger('change');
    
    0 讨论(0)
提交回复
热议问题