JotForm onchange事件发布到ajax

时间:2015-09-21 17:12:28

标签: javascript php jquery ajax

我有一个有趣的困境,我正在努力解决,而且我无法正确地绕过它。我正在使用JotForms的一些源代码,并在一个部分中:

 <div id="cid_51" class="form-input jf-required">
      <div style="width:100%; text-align:Left;">
        <iframe onload="widgetFrameLoaded(51)" frameborder="0" scrolling="no" allowTransparency="true" class="custom-field-frame" id="customFieldFrame_51" src="" style="border:none;width:400px; height: 50px;">
        </iframe>
        <div class="widget-inputs-wrapper">
          <input id="input_51" class="form-hidden widget-required form-widget" type="hidden" name="q51_dropdownOrganization" value="" />
          <input id="widget_settings_51" class="form-hidden form-widget-settings" type="hidden" value="%5B%7B%22name%22%3A%22list%22%2C%22value%22%3A%22September%5Cn%20Saturday%2C%20September%2026%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20September%2030%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5CnOctober%5Cn%20Saturday%2C%20October%203%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20October%207%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20October%2010%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20October%2014%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20October%2017%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20October%2021%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20October%2024%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20October%2028%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20October%2031%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5CnNovember%5Cn%20Wednesday%2C%20November%204%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20November%207%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20November%2011%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20November%2014%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20November%2018%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20November%2021%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5CnDecember%5Cn%20Wednesday%2C%20December%202%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20December%209%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20December%2012%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20December%2016%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20December%2019%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5CnJanuary%5Cn%20Wednesday%2C%20January%206%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20January%209%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20January%2013%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20January%2016%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20January%2020%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20January%2023%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20January%2027%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20January%2030%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5CnFebruary%5Cn%20Wednesday%2C%20February%203%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20February%206%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20February%2010%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20February%2013%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20February%2024%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5CnMarch%5Cn%20Wednesday%2C%20March%202%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20March%205%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20March%209%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20March%2012%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20March%2016%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20March%2019%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20March%2023%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20March%2026%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20March%2030%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5CnApril%5Cn%20Saturday%2C%20April%202%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20April%206%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20April%2013%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20April%2016%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20April%2027%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20April%2030%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5CnMay%5Cn%20Wednesday%2C%20May%204%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20May%207%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Wednesday%2C%20May%2011%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%5Cn%20Saturday%2C%20May%2014%5Cn%20%203%3A00-3%3A10%20pm%5Cn%20%203%3A10-3%3A20%20pm%5Cn%20%203%3A20-3%3A30%20pm%5Cn%20%203%3A30-3%3A40%20pm%5Cn%20%203%3A40-3%3A50%20pm%5Cn%20%203%3A50-4%3A00%20pm%5Cn%20%204%3A00-4%3A10%20pm%5Cn%20%204%3A10-4%3A20%20pm%5Cn%20%204%3A20-4%3A30%20pm%5Cn%20%204%3A30-4%3A40%20pm%5Cn%20%204%3A40-4%3A50%20pm%5Cn%20%204%3A50-5%3A00%20pm%22%7D%5D"
          data-version="2" />
        </div>
        <script type="text/javascript">
         setTimeout(function()
            {
              var _cFieldFrame = document.getElementById("customFieldFrame_51");
              _cFieldFrame.src = "//widgets.jotform.io/dynamicDropdowns/?qid=51&ref=" + encodeURIComponent(window.location.protocol + "//" + window.location.host);
              _cFieldFrame.addClassName("custom-field-frame-rendered");
             }, 0);
        </script>
      </div>
 </div>

当渲染下拉元素时,它会呈现如下内容:

    <div id="dropdownsContainer">

        <select class="dd-0 ">
            <option value="September">September</option>
        </select>
        <select class="dd-0 dd-1 ">
            <option value="Saturday, September 26">Saturday, September 26</option>
        </select>
        <select class="dd-0 dd-1 dd-2 ">
            <option value="3:00-3:10 pm">3:00-3:10 pm</option>
        </select>

    </div>

我想要完成的是,基于下拉选择的更改,它将其推送到php脚本。

这是使用的JQuery代码:

$(document).ready(function(){
    $(".dd-0").on('change', function(){
        var matchvalue = $(this).val(); // this.value
        $.ajax({ 
            url: 'slider.php',
            data: { matchvalue: matchvalue },
            type: 'post'
        }).done(function(responseData) {
            console.log('Done: ', responseData);
        }).fail(function() {
            console.log('Failed');
        });
    });
}); 

我遇到的一个问题是在控制台中记录了它:

  

未捕获的TypeError:无法读取属性&#39; on&#39;为null

我尝试了各种不同的方式,但仍然注意到我传递了这个消息。我错过了什么?有人可以告知为什么代码抛出错误而没有传递选定的onchange吗?

0 个答案:

没有答案