Example- "amitesh verma" to be converted to "verma amitesh"
Need help,Urgent.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sreejesh SPPosted May 3, 2013, 5:25 AM
My first post is only two word in reverse order format,in this below code use n word in reverse order so please use this below code and this code is definitely working
ASPX PAGE
function reverse(evt1) {
debugger;
var text = document.getElementById("text1").value;
var n = text.split(" ");
var x = n.length;
var str = "";
for (var i = x-1; i >=0; i--) {
str = str+n[i]+" ";
}
document.getElementById("text2").value = str;
}
Thanks
Sreejesh
Sreejesh SPPosted May 3, 2013, 2:58 AM
Please use below code that code definetly working
aspx page
Thanks
Sreejesh