How to send a kind of form without boot?

Asked

Viewed 134 times

0

good would like to know how to send a request to the database. in fact not a request but an insert for when I click on radio button he insert the value of radio button on the bench as I do this?

  • what have you tried to do? post the code you have already tried to do

  • I haven’t tried to do yet I wonder how it makes me start trying what I must do to make it happen that I want to know as soon as I know it I’ll start doing

  • 1

    Listen to the radio button click event. When the user clicks, schedule the sending of a form or make the request by AJAX.

  • type I have the page of insercao ja in the bank there and I only program a function anonima on the radio button? calling this page he will insert?

  • See this code on Soen for you to have a notion.

  • thanks guys I’ll try to do here

Show 1 more comment

1 answer

5


1 - set for example an ID to your form

2 - Use javascript

$(".classeDoRadio").click(function(){
   $("#idDoForm").submit();
});
  • guy but like I have the page that will make the insertion into the bank of the values of the radio button I giving only Ubmit wouldn’t change anything as I can for that Ubmit call the insertion page and record in the bank? if I put action in the form it will occur all right? or not?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.