嘿伙计们,我刚刚尝试在咖啡脚本中实现我的更改事件,但它不起作用。有什么帮助我吗
$('#subscription_id").on "change", ->
console.log "Hello"
outputs = $(this).val()
if outputs
$('#subscription_id').prop "disable", "false"
else
$('##subscription_id').prop "disable", "true"
嘿伙计们,我刚刚尝试在咖啡脚本中实现我的更改事件,但它不起作用。有什么帮助我吗
$('#subscription_id").on "change", ->
console.log "Hello"
outputs = $(this).val()
if outputs
$('#subscription_id').prop "disable", "false"
else
$('##subscription_id').prop "disable", "true"