show user named vittore took 5 first UL and change the page with fully next next button . Prorblem is also in the form of an input field, good works goes to its registered page number, but not presented but it goes on next or first button click. I tried to change the 'blur' with 'submit' or 'keydown' but it is not working. I wonder if we can go to page number on hiting or just typing the number
& Lt; Button id = "prev" & gt; Previous & lt; / Button & gt; & Lt; Input id = "page" value = "0" /> & Lt; Button ID = "more" & gt; Next & lt; / Button & gt; & Lt; Script & gt; Var pageSize = 5, ul = $ ( '# asd'), Pages = Math.floor (ul.find ( 'li'). Length / Pejakar), p = 0, the current page = function (i) {return Page * Page & Lt; = I & amp; Amp; I & lt; (Page + 1) * Pejasis}. Show (ul.on ( 'pageChanged.pager', function (e) {ul.find ( 'li'). Hide (). Filter (current page));}) $ ( '#prev'). ('Click.pager', function (e) {page = Math.max (0, - page) $ ('# page') .val (page) ul.trigger ('pagechange.pager')}} $ (' # more '). (' Click.pager ', function (e) {page = Math.min (page ++ page) $ (' # page '). Val (page) UL .trigger (' pageChanged.pager ' )}} $ ('# Page'). ('Blur.pager', function (e) {page = Math.max (0, math.man (page, + $ (this) .val () - 1) Ul.trigger ('pagechanged.pager')}) ul.trigger ('pageChanged.pager') According to your Bela, you need to change 'Blur' to 'make changes' ;
you ( Clear ) to change event Should:
$ ( '# Page'). ( 'Blur.pager', function (e) {page = Math.max (0, Mthkman (page, + $ (this) .val () - 1)) ul .trigger ('pageChanged.pager')})
For this ( change ) event:
$ ('# Page'). ('Change.pager', function (e) {page = Math.max (0, math.man (page, + $ (this) .val () - 1)) ul. Transgar ('pagechanged.pager')})
Comments
Post a Comment