File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1- # scala-js-jquery
1+ # scala-js-jquery [ ![ Build Status ] ( https://travis-ci.org/UdashFramework/scala-js-jquery.svg?branch=master )] ( https://travis-ci.org/UdashFramework/scala-js-jquery ) [ < img align = " right " height = " 50px " src = " http://www.avsystem.com/avsystem_logo.png " > ] ( http://www.avsystem.com/ )
22
3- [ ![ Build Status ] ( https ://travis-ci.org/UdashFramework/ scala-js-jquery.svg?branch=master )] ( https://travis-ci. org/UdashFramework/scala-js-jquery )
3+ Static types for the jQuery API for [ Scala.js ] ( http ://www. scala-js. org/) programs.
44
5- Static types for the jQuery API for [ Scala.js ] ( http://www.scala-js.org/ ) programs.
5+ ## Example
66
7- Sponsored by [ AVSystem] ( http://www.avsystem.com/ )
7+ ``` scala
8+ import io .udash .wrappers .jquery ._
9+
10+ val element : JQuery = jQ(" #id" )
11+ element.text(" Text content" )
12+ element.attr(" example-attr" , " value" )
13+ element.attr(" example-attr" ) match {
14+ case Some (value) => println(s " Attribute value: $value" )
15+ case None => println(" Attribute not found!" )
16+ }
17+ ```
You can’t perform that action at this time.
0 commit comments