$('#update_supply_id').on('change',function(){
//判断是否选取prompt属性,无返回值;
if($(this).val()){ var selectText = $(this).find('option:selected').text(); var index = selectText.indexOf('-'); var price = selectText.substring(index+1); $('#price_buy').val(price); }else{

$(
'#price_buy').val(''); } });

 

相关文章:

  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-01-11
  • 2022-12-23
  • 2021-11-13
  • 2022-02-15
猜你喜欢
  • 2021-10-24
  • 2022-12-23
  • 2021-08-17
  • 2021-11-13
  • 2021-06-03
  • 2022-12-23
相关资源
相似解决方案