I have input form and input tag as a button.
Before I was able to make a button which changed styling according to clicking on it but now i try to make this input gray until user check the checkbox. I tried to use <Show>
and when
property but i cant use when
on <Show>
tag. Then I tried to use onChange
property and it seem to not give me any errors. I just don't understand how can I change styling inside class="
and then connect it to checkbox function? My checkbox is made by using createSignal
Any ideas?
<input
onChange={functionForStyling}
name="submit"
type={"submit"}
value={"Sign up"}
class=""
/>