If a user enters 2 and the input is soulkewl . I need the output to be divide into two equal parts [or based on the user’s input] .So the output will be
1. soul
2. kewl
suppose if size given by user is 2 like soulsunny
1.souls
2.unnyz
suppose if size given by user is 3 like soulsunny
1.sou
2.lsu
3.nny
How to achieve this ?
Code what i have tried so far is in this link
In this link i am splitting the text using split(" ") but i am confused how to split or divide into equal parts using jquery
Note if the text is of odd numbers it should add one alphabet like z
How about this: