slider onchange value

Hi so i want that when my slider reaches a certain value for example 5000 that a button will be deleted. im new to coding in general and im trying to program a very complicated web so im learning the basics i guess. help will be appreciated!

Hi.

You can do this using the value attribute of slider element and hide () function.

For example:

if($w("#mySlider").value >= 5000){
	$w("#myElement").hide();
}

Good luck!

Thanks sam