simple function in javascript or jQuery

Cancelado Publicado hace 7 años Pagado a la entrega
Cancelado Pagado a la entrega

For someone who knows the language this should be a 10 minutes task really.

I have a form with various fields to fill, including:

<input type="text" tabindex="3" placeholder="Enter your city" value="" name="city" id="city" required=""/>

and

<input type="hidden" id="secondary_field" name="secondary_field" value=""/>

Now since I DO NOT own the back-end script the only way for me to get the City name is by copying the value entered in the City field into the Secondary_Field one.

Do it however you like: javascrypt, inline jQuery, jQuery with separate file - this last one being preferred.

The only thing is that IT WORKS.

:)

NOTES:

I know a bit of HTML and JavaScript but not too well, so I spent more than 30 minutes trying different solutions, like:

<input type="hidden" id="secondary_field" name="secondary_field" value=javascript:$('#city').val();/>

OR

[login to view URL]("secondary_field").value = [login to view URL]("city").value

OR

$('#secondary_field').val($('#city').val());

or in the form itself like

<form id="contactform" action="MYADDRESS" method="POST" target="_NEW" onsubmit=javascript:$('#secondary_field').val($('#city').val()); >

or

<script type="text/javascript">

function fillSubValue()

{

var src = [login to view URL]("city"),

dst = [login to view URL]("secondary_field");

[login to view URL]('input', function() {

[login to view URL] = [login to view URL];

});

};

</script>

<form id="contactform" onsubmit=fillSubValue action="MYADDRESS" method="POST" target="_NEW">

I started considering the solution here:

[login to view URL]

but I got no more time to spend on this.

I see automated offers coming in for high prices.

I am only bidding around $5 as for someone who knows the language this should be a 10 minutes task really.

HTML JavaScript jQuery / Prototype

Nº del proyecto: #13877268

Sobre el proyecto

28 propuestas Proyecto remoto Activo hace 7 años

28 freelancers están ofertando un promedio de £14 por este trabajo

GetReal

Freelance Professional! Let me fix it up for you, ready to start now and have it done for you ASAP! thanks!

£23 GBP en 0 días
(559 comentarios)
8.0
versacode

Hello! We are a group of electrical engineers and web developers. I understand that you would like to fill form fields before the form is submitted, and we will be happy to help you do so. It does not matter whether yo Más

£18 GBP en 1 día
(71 comentarios)
6.2
ChiragLathiya

Hello, Please message me before you gonna award this project to me I have gone through the project details - I and My team can start working on the project. Looking forward to get your soonest reply Thanks

£10 GBP en 1 día
(105 comentarios)
5.9
glennwilkins

sir pm me i will finish this asap .. sir pm me i will finish this asap .. sir pm me i will finish this asap .. sir pm me i will finish this asap ..

£10 GBP en 0 días
(164 comentarios)
6.2
saifansari2

I will resolve it Working NodeJs,Angularjs,Canvasjs,Chessjs,Underscorejs,Angular Meterial,Ionic framework etc. Develop Web Application, Mobile Application,UI layout with latest Technologies like Angularjs,HTML5,CSS3 Más

£13 GBP en 1 día
(26 comentarios)
4.5
shennz

Hello, I would really like to help you. This is a simple task. I can complete it in a short time. Please PM me for more details. Thank You

£10 GBP en 0 días
(24 comentarios)
4.4
user2690

Hi, good day, I'm Alexander and I would like to help you with your code. you do not need to award me this project until you see a demo. I could send you a video of how it works and then you could award me this projec Más

£10 GBP en 1 día
(32 comentarios)
4.2
MetaWebGlobals

Hello, I am interested to work on it, i have great underatnding over javascript, Jquery and HTML also I have the excellent command over PHP, Mysql, Cakephp, Smarty, Jquery, AJAX. So i am interested to do this pr Más

£18 GBP en 1 día
(19 comentarios)
4.3
MrAbdulBasit

I have read description... I can do this work right now. Let me know if you are interested. i am comfortable working with following technologies... AngularJS Kendo UI HTML5 CSS3 BootStrap Javascript Jquer Más

£10 GBP en 1 día
(6 comentarios)
2.3
Hamidoz

A proposal has not yet been provided

£10 GBP en 0 días
(2 comentarios)
1.8
SergeyGorbatyuk

Hello. My name is Sergey. I'm front-end/javascript developer from Ukraine with 1,5 years of experience and i'm interesting in making your job. If I understood your task correct - you need to cope one input value to ano Más

£11 GBP en 1 día
(2 comentarios)
1.8
sapna321

I am ready to work without taking money. Hello, I am a firmware developer and website developer having 7+ years of experience. Working on core PHP, CodeIgniter, MySQL, jQuery, AJAX, AngularJS, Bootstrap, HTML and C Más

£10 GBP en 1 día
(1 comentario)
0.6
manugdas

Hi, I am a passionate PHP developer doing such projects for around 4 years. I have good knowledge and experience in PHP, Mysql, JS, Jquery, HTML, CSS etc. I have very good experience in fixing bugs, editing, and a Más

£13 GBP en 1 día
(1 comentario)
0.6
mjanasathimannil

It is very easy to solve. I can do this in jquery it is simple. It need only about 4 or 5 line of code. I can solve this within minutes

£18 GBP en 1 día
(0 comentarios)
0.0
tigercodes

I have done a lot of jquery and javascript programming including doing entire event registration and donation systems in these languages. I could get this done inside a day and provide support to make sure it works.

£12 GBP en 1 día
(0 comentarios)
0.0
stalinmorn

I want to start work in this plattaform, give me the opportunity

£13 GBP en 1 día
(0 comentarios)
0.0
ivonneicc

You could use the event onblur of the input1 (city) an put something like onblur="$('#secondary_field').val(('#city').val())", the effect of this event is that when you lose the focus of the city input the content is c Más

£10 GBP en 1 día
(0 comentarios)
0.0