A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://stackoverflow.com/questions/53785108/binding-scala-how-to-define-checked-in-a-checkbox below:

scala.js - Binding.scala: how to define checked in a Checkbox

Asked 6 years, 8 months ago

Viewed 377 times

I want to define a checkbox in Binding.scala, like:

 <input type="checkbox"
             checked={elem.checked}
             />

elem.checked can have any String value (even an empty):the checkbox is always checked.

How can I get

 <input type="checkbox"
             checked/>

if checked, resp.

 <input type="checkbox"/>

if not.

asked Dec 14, 2018 at 18:30

pmepme

14.9k55 gold badges6161 silver badges110110 bronze badges

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4