/*文字コードUTF-8*/ /////////clear button // contents clear (function($) { $(document).ready(function(){ $.fn.clearForm = function() { return this.each(function() { $(':input', this).each(function() { var type = this.type, tag = this.tagName.toLowerCase(); if (type == 'text' || type == 'password' || tag == 'textarea') this.value = ''; else if (type == 'checkbox' || type == 'radio') this.checked = false; else if (tag == 'select') this.selectedIndex = -1; }); }); }; }); })(jQuery); function disp_con(){ if(window.confirm('フォームの内容がすべてクリアされます。\nよろしいですか?')){ (function($) { $(document).ready(function(){ $('#frmInputCon').clearForm(); // cookie clear $.cookie('name_con', null, {}); $.cookie('txtMail_con', null, {}); $.cookie('txtMailReinput_con', null, {}); $.cookie('phonenumber_con', null, {}); $.cookie('Age_con', null, {}); $.cookie('for_shinjyuku_con', null, {}); $.cookie('for_shibuya_con', null, {}); $.cookie('neither_con', null, {}); $.cookie('about_eyelash_con', null, {}); $.cookie('about_shop_con', null, {}); $.cookie('about_etc_con', null, {}); $.cookie('inq_accept', null, {}); $.cookie('textarea1_con', null, {}); $("#about_etc").attr("checked","checked"); $("#uninq_accept").attr("checked","checked"); }); })(jQuery); location.reload(true); } else { } }