Swapping original string halves

luisakovac

New Member
Can I write a function that reads the content of an HTML textbox with id "message" and then writes into the HTML element with id "shuffled" with the value of original string with it's two halves swapped? Examples:\[code\]"it" -> "ti""electric" -> "tricele""this laptop is lame" -> "op is lamethis lapt"\[/code\]
 
Back
Top