I guess you are trying to achieve something like this -->
Question:
2 dropdowns
country which has following values-
1)India
2)US
3)UK
and states list which has-
1)Pune
2)Goa
3)Manhattan
4)Chicago
5)Coventry
6)Leeds
now when i click on India it should only display Goa and Pune (for US Manhattan and Chicago and for UK Leeds and Coventry)
*****************************Reference Code Start******************************
First create a list called country and add item to Tilte(India,US,UK)
Title
India
US
UK
Create a list called State and create a lookup field called Country. Add item to Country and Title.
Country - Title
India - Pune
India - Goa
US - Manhattan
US - Chicago like this.
put this code your SharePoint Designer Page. It will work.
$(document).ready(function(){
$().SPServices.SPCascadeDropdowns({
relationshipList: "YourListName",
relationshipListParentColumn: "Country",
relationshipListChildColumn: "Title",
parentColumn: "Country",
childColumn: "State",
debug: true
})
})
}
*****************************Reference Code End******************************
Thanks.
Reference : https://social.technet.microsoft.com/Forums/office/en-US/f0dc9108-dea2-4ac8-9553-00206b028d92/working-cascading-drop-down-using-javascript-in-share-point-2013-?forum=sharepointgeneral