Hye!
I am trying to add a submenu at option4 i.e as user clicks option 4 , a submenu appears on right. Further I have to save both the Parent(Option 4) and selected option in the sub menu as its child and return both in an array.
<!DOCTYPE html>
<html lang="en">
<head>
<meta...