以下のjQueryコードをAjaxに変換したいのですが可能ですか?jQueryコードをAjaxに変換する
<script type="text/javascript">
$j(document).ready(function() {
$j("#co-shipping-method-form .buttons-set button.button").click(function() {
var shippingSelectedValue = $j("input[name='shipping_method']:checked").val();
if(shippingSelectedValue == 'freeshipping_freeshipping'){
$j("#customtest_modal_id").show();
}
});
$j("a.reset-customtest").click(function() {
$j("#customtest_modal_id, #checkout-step-shipping_method").show();
$j("#checkout-step-payment").hide();
});
});
</script>
「変換する」とはどういう意味ですか?あなたはAjaxが使われていることを知っていますか? – hallleron
Ajaxは、バックエンド関数を呼び出して日付を返すメソッドです。あなたのコードは、イベントをクリックするだけの拘束です..... – Ciccio
@hallleron:私はajaxを認識していません:私が必要とするのは、ワンクリックです。私は上記のロジックを実行したいですか?これを達成する – magento12345