html - 在 CS5 Dreamweaver 中使用列表/菜单表单?

标签 html css paypal dreamweaver flash-cs5

我正在尝试为用户创建一种选择付款方式(借记卡、信用卡或 PayPal)的方法。根据他们选择的值,我想为付款信息(卡号等)调出一个新菜单。我该怎么做呢?

代码如下:

Payment Method
<select name="Payment" id="Payment">
<option>Debit</option>
<option>Credit</option>
<option>PayPal</option>
</select>
</form>

最佳答案

这是一个 FIDDLE这会让你开始。

JS

$('#payment').change(function(){
              var selection = $('#payment').val();
              $('.putmehere img').hide();
              if(  selection == 'd')
                   {
                    $('#debit').show();
                    }
              if(  selection == 'c')
                   {
                    $('#credit').show();
                    }
              if( selection == 'p')
                   {
                    $('#paypal').show();
                    }

});

关于html - 在 CS5 Dreamweaver 中使用列表/菜单表单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21922981/

相关文章:

html - 如何使用 CSS 连接树结构可视化中的子项

paypal - 用于处理欧盟增值税的小额支付的支付处理器

php - Paypal 登录 session 然后将其保存以便更快地结帐

php - Paypal Payflow 沙箱 ACH 错误

javascript - 我无法使用 Javascript 显示图像

html - 在 float 子 <div> 上使用高度 100%

html - Bootstrap Carousel 在 html 中覆盖了我自己的样式

css - 伪类 :active not working correctly in firefox

html - CSS 计数器在 div 内的子项中不起作用

javascript - 在 PHP 中访问 JavaScript 数据以获取 HTML 列表