Filter Elements

To be honest the last few post I did in this give enough to work this out. It should be just a matter of adjusting the code I indicate here

I do not think the reset() in willam's example was in my Original.

But if I did have a reset button I would simple (hack) it like this.

reset.hype.zip (204.0 KB)

I new reset button with the id of 'reset' to call the function;

 var showList =  $("div.HYPE_element.tag.show");
	 
	$.each(showList, function( index, item ) {
 $(this).toggleClass( "show" );
 $(this).css("background-color", "white")
	 
	 });
	 
	 hypeDocument.functions().filter(hypeDocument, element, event)

In the filter cod I would surround the first if condition with another if condition for the reset button calling it.
This stops the button changing colour.

	if ( 	element.id !== "reset") { 
		 //--SET BUTTON COLOUR
....