Welcome Guest, Not a member yet? Register   Sign In
jquery modal passing post values to controller
#2

[eluser]WoolyG[/eluser]
Hey GDawson,

Do you expressly *have* to POST the data?

You could just grab the contents of the input and stick it across into the modal without needing a POST:


Code:
$("#create-note").click(function(){
  var input_data = $("#newNote").val();
  $("#dialog-modal").html(input_data); // Or $("#dialog-modal > p") or whatever sub-element..
});


Hope this helps
- WoolyG


Messages In This Thread
jquery modal passing post values to controller - by El Forum - 07-30-2012, 05:44 PM
jquery modal passing post values to controller - by El Forum - 07-30-2012, 07:01 PM
jquery modal passing post values to controller - by El Forum - 07-31-2012, 02:59 PM
jquery modal passing post values to controller - by El Forum - 07-31-2012, 04:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB