Jquery click and add Active in different ul but same class name

I have lot of menu UL elements and same class name,

how can i do for the ul children's li click and add class "active" to which clicked,and click other li inside the same ul will remove active and add the active class to clicked li,i tried google for a while,but no find out the solution,thanks