选择框时选择Javascript更改值

时间:2016-08-22 03:01:54

标签: javascript jquery html

foreach (mp3file file in fileList){
        string outputfilename = fbd.SelectedPath + "\\" + file.name + ".wav";
        using (Mp3FileReader reader = new Mp3FileReader(file.path)){
            using (WaveStream convertedStream = WaveFormatConversionStream.CreatePcmStream(reader)){
               WaveFileWriter.CreateWaveFile(outputfilename, convertedStream);
            }
        }
        progressBar.PerformStep(); //This isn't working alone
        Application.DoEvents();   //This is working fine now
    }

我有这个脚本,当我从选择框中选择选择时,如何从访客更改 harga 的值?

谢谢你。

1 个答案:

答案 0 :(得分:1)

像这样使用change事件

$('.visitor').change(function(){
        if($(this).val()  == '5,000'){
                // write your to do action here
        }
});