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:


<!--- form submission -->

<script type="text/javascript">

function showValues(formid) {

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


type: "POST",

url: "[login to view URL]",

data: str,

success: function(value) {






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:


--- 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:


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)

12 freelancers are bidding on average $22 for this job


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

$30 USD in 1 day
(298 Reviews)

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)

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)

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)

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)

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)

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)

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)

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)

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)

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)