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

SpiceBox, version 0.2.7. 26 lines.

- Page: https://pluginprobe.com/plugins/spicebox/0.2.7/code/inc/js/custom-js.js
- Raw: https://pluginprobe.com/plugins/spicebox/0.2.7/raw/inc/js/custom-js.js
- Modified: 2018-05-22T12:31:28+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/0.2.7/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  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();
 }
 var dataString = 'Resason='+resaon+'&TextReason='+reasontext;
 $.ajax({
    type:'POST',
    data:dataString,
    url:ajaxurl,
    success:function(data) {
     location.reload();
 
    }
  });
 
});
 });
}(jQuery));

```
