How to pass paramater to ajax jquery to call action from another Controller -


I have a drop down list size, I need to take action from an administrator when clicking the button:

How do I call to edit the action using AJAX jquery and use value ddlsize using AJAX jquery.

You can attach events by clicking on the event (or on-change) and thus an AJAX request Send:

  & lt; Script & gt; $ ('# Yourcomboboxid') Click (function () {// create model according to the edition criteria var model = {selected index: "2", selected value: "2014"}; $ .ajax ({url: ' Type: 'Post', Data Type: 'HTML', Data: JSN Stringhey (Model), 'url' ("Edit", "Home"), Content Type: 'Application / Jason; Carset = UTF-8', Type: }}. Success (work (results) {});}); & Lt; / Script & gt;  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -