(Classic) move_to_top()

Engine Compatibility

move_to_top is not supported by the Node engine.

move_to_top(<selector>)

Move the element matched by the selector just below it's parent

move_to_top("#the_last_list_item")

The following ruleset shows move_to_top() being used

ruleset a1299x172 {
	meta {
		name "move to top example"
		description <<
			
		>>
		author "nathan cerny"
		logging off
	}
	dispatch {
		// domain "exampley.com"
	}
	global {
	}
	rule move_list_item is active {
      select using ".*" setting ()
      move_to_top("li:last");
    }
}

The following demonstrates the preceding rule:

Copyright Picolabs | Licensed under Creative Commons.