Prev Demo
Split() Method To Split At Particular Specified Character In Javascript
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <p>Click the below button to extractat particular character.</p> <input type="button" value="Split" onclick="Function()" /> <p id="myId"></p> <script> function Function() { var a = "is this i phone is yours!"; var r = a.split("i"); document.getElementById("myId").innerHTML = r; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output