Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use reload/refresh when click cross then jquery modal will be close
    primarykey
    data
    text
    <p>I have used same form for adding and edtting data. Adding and Editting is done successfully and I am refreshing after editing and adding. But I need some solution which is below</p> <p>My jquery code is below </p> <pre><code>$(".update_vehicle_info").click(function(){ var hdn_id = $(this).attr('data-hdn_id'); $("#vehicle_form_div").find("#hdn_id").val(hdn_id); var post_url = "&lt;?php echo base_url();?&gt;index.php/spc_con/get_vehicle_info_data/" + hdn_id; $('#hdn_id').empty(); $.getJSON(post_url, function(response){ document.getElementById('financial_year_id').value = response.financial_year_id; document.getElementById('vehicle_id').value = response.vehicle_id; document.getElementById('brand_id').value = response.brand_id; document.getElementById('country_id').value = response.country_id; document.getElementById('reg_no').value = response.reg_no; document.getElementById('capacity').value = response.capacity; document.getElementById('running').value = response.running; document.getElementById('serviceable').value = response.serviceable; document.getElementById('condemned').value = response.condemned; }); $("#vehicle_form_div").dialog("open"); }); </code></pre> <p>I have screen shoot which is below <img src="https://i.stack.imgur.com/xOCYz.jpg" alt="enter image description here"></p> <p>If i click edit button, if i don't edit now and if click Add Vehicle Info then edit field value has stayed but </p> <p>I need when i click edit and click cross without editing. Then Page will be refresh/reload which if i click Add Vehicle Info then every field Data won't stay it. </p> <p>How to solve it, Please help me.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload