jQuery(".show-adv-options").click(function(){ if (jQuery('#adv_options_area .adv-inputs').children('.input-items.submit').length < 1) { jQuery(".input-items.submit").detach().appendTo('#adv_options_area .adv-inputs') } }); jQuery(".hide-adv-options").click(function(){ if (jQuery('#rate_calculation_form > ul.user-inputs').children('.input-items.submit').length < 1) { jQuery(".input-items.submit").detach().appendTo('#rate_calculation_form > ul.user-inputs') } });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter