Skip to content

Commit 84aec34

Browse files
authored
Merge pull request #19 from kelwang/master
add index method
2 parents c5b71b8 + e1e70a0 commit 84aec34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jquery.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,10 @@ func (j JQuery) SetWidth(i interface{}) JQuery {
502502
return j
503503
}
504504

505+
func (j JQuery) Index(i interface{}...) int {
506+
return j.o.Call("index", i).Int()
507+
}
508+
505509
func (j JQuery) InnerHeight() int {
506510
return j.o.Call("innerHeight").Int()
507511
}

0 commit comments

Comments
 (0)