Completed

Ajax Javascript Code Fix

Have the following code that is not working correctly. Two forms, each with a form id of form1 and form2.

When typing in the forms, should send content to php file.

Script is:

</script>

<!--- form submission -->

<script type="text/javascript">

function showValues(formid) {

var str = $("#form".formid).serializeArray();

$.ajax({

type: "POST",

url: "[login to view URL]",

data: str,

success: function(value) {

$("#results").html(value);

}

});

}

</script>

HTML is:

<form id="form1"><div>Name 1: <input onkeyup="showValues(1)" type="text" name="name1" id="name1" /></div></form>

<form id="form2"><div>Name 2: <input onkeyup="showValues(2)" type="text" name="name2" id="name2" /></div></form>

<div id="results"></div>

The [login to view URL] form for testing can just be:

print_r($_POST);

--- the idea is by using the formid, we only get the results of that form.

Thanks for biddin!

Skills: AJAX, HTML, Javascript, jQuery / Prototype, PHP

See more: javascript number fix, html suggestions search ajax, javascript toggle fix, jquery ajax response, how to call function in ajax, how to get return value from ajax call, ajax javascript example, how to return value from ajax success function in javascript, jquery ajax return value from success function, jquery ajax success function return data, javascript ajax post, html table crud ajax, html simple chat ajax java javascript, html page scrape ajax call, webpage code fix, crlf injection code fix, javascript test fix, javascript html css dhtml ajax menu, html code fix, html code fix outsource

About the Employer:
( 81 reviews ) Boise, United States

Project ID: #18613889

Awarded to:

julius19946

Hi i saw a mistake in the code , instead of using var str = $("#form".formid).serializeArray(); It should be "#form" + formid . Feel free to contact me for more info

$25 USD in 1 day
(11 Reviews)
3.0

12 freelancers are bidding on average $22 for this job

microwebtechs

please reply soon and share website details, I will fix forms soon, please reply

$30 USD in 1 day
(298 Reviews)
6.8
sweetykantha04

Hello! I have very good experience in PHP and Ajax, I can fix the issue right now. Please reply me to do so. Awaiting for your kind response. Thanks

$30 USD in 1 day
(98 Reviews)
6.6
wildlily980

Hi You made a small mistake. I have make it working. I can show you if you want. ........................................................

$15 USD in 0 days
(59 Reviews)
6.7
workandlive123

Hello, After reading this job description, I am convinced that I would be a perfect fit for this role. That is because of - I am a PHP expert who has 12 years of experience with laravel, codeignitor, wordpress/MyS More

$25 USD in 1 day
(66 Reviews)
5.7
TalAkerele

Hi, I am very happy to bid your project. I read your requirements carefully,so i see what you mean. I have been experiments with AJAX, HTML, Javascript, jQuery / Prototype, PHP I'd like to work with you. i'll comp More

$20 USD in 1 day
(28 Reviews)
5.3
visualexperience

Hey there, I just read your project description and I would love to help you with your AJAX issue. I am available to start right away. If you feel like I would be able to assist you on this please get back to me vi More

$24 USD in 1 day
(30 Reviews)
4.7
w3tridip2017

Hi, I've read carefully of your job description about "Ajax Javascript Code Fix".I am a professional "Full Stack Web Developer".I have more than five years experience in Web Development. Your satisfaction with the More

$20 USD in 1 day
(65 Reviews)
4.7
Designersathe

Hello As i see your requirement there is some issue. I can resolve your issue right now, Regards Designersathe

$15 USD in 0 days
(6 Reviews)
4.3
KaramMahdi

Dear sir I am an expert at PHP, MySQL, Jquery, AJAX and I can do this work very professionally very quickly and as soon as possible I will start working now and completed you work at high speed and very high effici More

$10 USD in 1 day
(12 Reviews)
4.0
trickydevs

Dear Hiring Manager, You may get tired of getting auto bids but I am not like other freelancers. I have read your full project description. I can fix the javascript issue. I have 6yrs of web development experien More

$20 USD in 1 day
(8 Reviews)
2.8
sachin0786

Hi, I am having 4+ years of experience in PHP, MySQL,Ajax, jQuery. I would like to work on your project and deliver the task within the required period of time. Thanks

$25 USD in 1 day
(1 Review)
0.4