A function about .scroll is need to set

I have a function about fixed navigation

function fixednav()
// stuff here

I have used it with


fixednav(); also used in document ready

The fixednav is need to set on document ready? or just in .scroll above? And what way need set both or one and one?


try again ?


1 Like

Yes I rewrite it thanks.