148 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Czech Republic
Itachicz says

Hi.

My jQuery pagination for slider creator looks like this “Page 1 of 12” and when it’s clicked it goes like this “1”, and now when the page is set I want to look it as on the begining “Page 2 of 12”. Here is how it looks like http://screenr.com/kVr7

So is here any way how to write condition “If pagination was’t changed do something”. Or “If text in pagination was unselected do something”?

Thx for your advices.

1484 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
OriginalEXE says

Do something when?

161 posts
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Europe
  • Has been part of the Envato Community for over 1 year
+1 more
themebros says

Not quite sure what you’re trying to do with that.

When you change the value of the input and click outside of it you can use this to bind an action to that event.

$('.the-input-selector').change(function(){
    /* do something */
});

If you want to do something every time a key (on the keyboard) is released (when typing in the input) the you can do it like this.

$('.the-input-selector').keyup(function(){
    /* do something */
});
148 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Czech Republic
Itachicz says

So first of all sorry for this unclear question. So I want to do something, when I click outside of the text input.

Thx for your time.

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says
$( 'input' ).blur( function() {
    // do something
} );
148 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Czech Republic
Itachicz says

$( 'input' ).blur( function() {
    // do something
} );

Thx :) That’s exactly what I was searching for :)

by
by
by
by
by
by