148 posts
  • Has been part of the Envato Community for over 2 years
  • Located in Czech Republic
  • Sells items exclusively on Envato Market
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.

1509 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
+2 more
OriginalEXE says

Do something when?

161 posts
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
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
  • Sells items exclusively on Envato Market
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
  • Sells items exclusively on Envato Market
Itachicz says

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

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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by