whats the number of times the letter n appears in:
q: how to copy data from one column to another in sharepoint 2010 using jquery i need jquery code which can copy the data from one column(look up column) and populate into other column (single text line) in the same list in sharepoint 2010.

a: if you really need to implement such a copy mechanism using javascript you can use the javascript client script object model also called jsom for this task.
you can find a description and examples here: https://msdn.microsoft.com/en-us/library/office/hh372944(v=office.14).aspx
using jsom will only work if youre calling that script from within sharepoint.
should you need to execute that script outside of that sharepoint site, you could use the spservices library which uses sharepoint webservices in the background: http://spservices.codeplex.com/
may i ask what the purpose of this copy is though? depending on what you need it for, you could also just use a calculated column to display the value of the other column, but i also wouldnt see much purpose of that. :)

a: this should do it:
function presaveitem() {
var n1 = $(select[title$=lookupfield] option:selected).text();
$ ( input[title=singletextfield]).val(n1);
return true;
}


user
There are 56 "n"s in the text you provided.
assistant