# spicebox/1.0/inc/js/custom-js.js

SpiceBox, version 1.0. 31 lines.

- Page: https://pluginprobe.com/plugins/spicebox/1.0/code/inc/js/custom-js.js
- Raw: https://pluginprobe.com/plugins/spicebox/1.0/raw/inc/js/custom-js.js
- Modified: 2019-04-29T13:41:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/spicebox/1.0/code/inc/js/custom-js.js#L10-L20`.

```javascript
(function($) {
  $(document).ready(function(){
    $('#submit').click(function(e) {
 var ajaxurl = $('#ajaxurl').val();
 var resaon = $('input[name=reason_key]:checked').val();
 var SiteAdminEmail = $('#admin_mail').val();
 var SiteUrl = $('#plugin_site').val();
 var  reasontext = '';
 if(resaon=="I want to try a new design, I don't like Spicepress style"){
  reasontext = $('#reason_found_a_better_plugin').val();
 }else if(resaon == 'Other'){
 	reasontext = $('#reason_other').val();
 } else if(resaon == 'Is not working with a plugin that I need'){
  reasontext = $('#reason_not_working_with_needed_plugin').val();
 }
 var dataString = 'Resason='+resaon+'&TextReason='+reasontext+'&SiteUrl='+SiteUrl+'&SiteAdminEmail='+SiteAdminEmail;

 $.ajax({
    type:'POST',
    data:dataString,
    url:ajaxurl,
    success:function(data) {
     location.reload();
 
    }
  });
 
});
 });
}(jQuery));

```
