When users check the box "My delivery address and billing address are the same," I want to hide the delivery address form.
This code works well in everything except IE:
$("#order_shipping_same_as_billing").change(function() { $("fieldset.shipping").toggle("blind", { 'direction' : 'vertical' }, 50); });
IE does not register a change event until the flag loses focus , which creates an unpleasant user experience.
Many trading sites (and not trading platforms!) Do such things - there should be a cross-browser compatible method that I miss.
click . , IE.
$("#order_shipping_same_as_billing").click(function() { $("fieldset.shipping").toggle("blind", { 'direction' : 'vertical' }, 50); });
click . , , .
Source: https://habr.com/ru/post/1709953/More articles:Test cases for every link on a website? - testingWhere to manage the most sensitive content that you use when managing versions? - githttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1709950/assign-permissions-to-a-user-on-tables-with-a-certain-prefix&usg=ALkJrhjku1invymYlv97iu7NH7XFGA3qowCapture EAGLview Alpha Content on iPhone - iphoneHow would you draw the dock icon when you clicked? - objective-cA constructor cannot access private members of its class - c ++Recommendations for handling user preferences in iPhone MVC? - objective-cHow flexible is there in a Django loop? - djangoVarious latex questions - latexGetting a footer - htmlAll Articles