How can I filter dropdown select option with using jQuery?

Last updated on June 19th, 2024 at 12:03 pm

HTML CODE

<select class="type">
  <option value="all">all months</option>
  <option value="january">january</option>
  <option value="feburary">feburary</option>
  <option value="march">march</option> 
  <option value="june">june</option>  
</select>

<select class="Years"> 
<option value="all">All Year</option>  
  <option value="2023">2023</option> 
  <option value="2022">2022</option>
  <option value="2021">2021</option>
  <option value="2020">2020</option> 
</select>

<div class="news-load-section">
  <div class="news-item" data-Years="2023" data-type="january" data-bed="2023">2023</div>
  <div class="news-item" data-Years="2023" data-type="june" data-bed="2023">2023</div> 
  <div class="news-item" data-Years="4" data-type="feburary" data-bed="2022">2022</div>
  <div class="news-item" data-Years="3" data-type="march" data-bed="2021">2021</div> 
  <div class="news-item" data-Years="2020" data-type="feburary" data-bed="2020">126</div>
  <div class="news-item" data-Years="1" data-type="january" data-bed="2023">2023</div>
</div>

JQUERY CODE

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script>

//call the same function for each select's change event
$("select.type, select.Years").change(updateNEWS);

function updateNEWS() {
  //get all the values
  var newsmonth = $('select.type').val();
  var newsyear = $('select.Years').val();
  
  $('.news-load-section')
    .find('.news-item')
    .hide()
    .filter(function () {

      var oknewsmonth = true;
      if(newsmonth !== "all"){
        oknewsmonth = $(this).attr('data-type') === newsmonth;
      }

      var oknewsyear = true;
      if(newsyear !== "all"){
        oknewsyear = $(this).attr('data-bed') === newsyear;
      }

      //only fade if it satisfies all two conditions
      return oknewsmonth && oknewsyear;
  }).fadeIn('fast');
}
</script>

LIVE WORKING EXAMPLE

2023
2023
2022
2021
126
2023
Share Post

70 thoughts on “How can I filter dropdown select option with using jQuery?”

  1. hello!,I love your writing very a lot! percentage we communicate
    more about your article on AOL? I need an expert on this space to resolve my problem.
    May be that’s you! Taking a look forward to peer you.

  2. Bitcoin Laundry is being listed at the #1 spot here, well that’s not without substance. The top reasons why I’m in love with this Bitcoin tumbler is because it’s fast, takes care of our anonymity and privacy, and has a very negligible fee. Smartmix bitcoin mixing service The payout is almost instant, all it needs is 2 confirmations for the dirty coins being sent in to be cleaned or tumbled. No account needs to be created to clean your coins either. They have advanced options which let you set “delayed payouts” which further increase your anonymity and make it hard to link the coins going inside to the coins coming out. There’s even an option to add up to 5 addresses, so your coins are broken down into 5 different parts and sent to the different addresses again adding another layer of anonymity. The minimum amount too is pretty low being just 0.001BTC while the maximum limit is 15.32BTC. It’s pocket-friendly as well, with the fee being just 0.5% per mix + 0.0001BTC/address, in fact, it probably is one of the lowest fee in the industry altogether. As for anonymity, they delete all logs related to your mix after 7 days which finally erases the last thread which could ever be linked back to you. So yes, enough reasons to list it at the #1 spot, don’t you agree? Yomix : Zero-log policy Bitcoin Mixer : It offers flexible transaction fees and a low minimum transaction limit Bitcoin Laundry : Uses stealth pools to anonymize transactions Mixero : Excellent customer support Coin Mixer : Fast payouts 1. Yomix – Zero-log policy Yomix is a Bitcoin mixing service that provides privacy by using the ‘Bitcoin Mixer 2.0’ algorithm to shuffle bitcoins. Unlike other similar tumbling services that mix your coins with the coins of other users, this platform mixes your crypto with the crypto bought by them directly from the cryptocurrency stock exchanges. Yomix verifies the newly purchased coins with a scoring system with the help of innovative algorithms and outfoxes such technologies as blockchain volume analysis, cluster analysis, taint analysis, etc. It means that you will receive your BTC back split into random parts, and even at the different addresses if needed. Consequently, your privacy is protected as there is no connection to you. And it takes up to 6 hours to complete your request. Another privacy feature of this mixer service is that it does not require registration and it does not store logs. All the transactions are digitally signed with letters of guarantee that you can check on the website at any moment. They also provide 24/7 technical support. MixTum.io will charge you a 5% Fee from your transaction as well as a network fee of 0.00015 BTC. The platform provides two versions – for Clearnet and Tor browsers.Yomix is a Bitcoin cleaner, tumbler, shifter, mixer and a lot more. It has a completely different working principal than most other mixers on this list. So, it has two different reserves of coins, one for Bitcoin and the other for Monero. It cleans coins by converting them to the other Cryptocurrency. So, you can either clean your Bitcoins and receive Monero in return, or vice-versa. The interface is pretty straight-forward. You simply choose your input and output coins, and enter your output address. For now, only 1 output address is supported which we believe simplifies things. The fee is fixed which further makes it easier to use. You either pay 0.0002 BTC when converting BTC to XMR, or 0.03442 XMR when converting XMR to BTC. It also provides a secret key which can be used to check transaction status, or get in touch with support. The process doesn’t take long either, Yomix only demands 1 confirmation before processing the mixes. Bitcoin amounts as low as 0003BTC and XMR as low as 0.05 can be mixed. It doesn’t require any registrations so obviously there’s no KYC. The company seems to hate the govt. and has a strict no-log policy as well.Yomix is another simple yet trustworthy Bitcoin Tumbler service. And one of the primary differences it has compared to the other platforms on this list is that it can accommodate really “large volume transactions”. There is no maximum transaction limit as such, considering how their reserve is really huge and you’ll need to be a millionaire before you can run them out of funds. If any limit is breached, you are notified before you make the payment. The minimum transaction 0.001BTC, any amount lower than this is is considered a donation, like in the case of PriveCoin, and isn’t sent back to the customer. The minimum fee is 0.5%, with an additional 0.0005BTC for every deposited transaction. You can set a custom fee for added anonymity and they also provide a letter or guarantee like all the mentionable Bitcoin Tumblers out there.Yomix provides all the anonymity and protection that comes standard with a Bitcoin mixer, as well as many optional features and benefits that you won’t find anywhere else. If you use a new address for withdrawal, the coins you receive back are completely separated from your previous history on the blockchain, so it is almost impossible to link the transaction history with your personality. SmartMix commission is only 0.5% of the deposit amount plus 0.0001 BTC / 0.00005 BCH for each exit address. 5 output addresses can be set. The privacy policy makes it possible to delete all mixing information as soon as it is completed. The resource provides fast and reliable mixing of bitcoins through a simple and attractive user interface. Yomix has made two additional functions for its clients in contrast to its colleagues: 1. Affiliate program. Share your anonymous referral link and earn cryptocurrency bonuses. For each mixing operation performed on your link, you receive 50% of the service fee. 2. Loyalty reward program. Use your anonymous SmartClub code with every mixing operation to receive service charge discounts. The more you mix, the more you save. Pros: No logsIt has a positive reputation among the Bitcoin community 2. Bitcoin Mixer – It offers flexible transaction fees and a low minimum transaction limitBitcoin Mixer has a simple interface, it is easy to use and simple. Time-delay option can be set up to 24 hours. With regard to the fee, there is an additional fee of 0.0005 % per output address. As one of the few, this cryptocurrency tumbler provides a user with a special mixing code which guarantees that fresh crypto coins are not blended with previous deposits. Additional URL Blender is also here to guarantee that users can get to the tumbler, even if the main link is not working.Mixing Bitcoins is made simpler with Bitcoin Mixer. A mixer available both on the Clearnet and the Tor network. Offers complete control over the time-delays and fund-distribution. Charges a static fee of 0.3%. Maximum number of output addresses allowed is 10. Each address is charged an additional 0.0001BTC. Largest possible mix is 100 BTC, while smallest accepted deposit is 0.002 BTC. No registration required. Has a No Logs Policy, retains logs for 7-days by default. Although users can delete logs anytime before the 7-day period manually. Does provide Certificate of Origin. Also has an “Instant Dispatch” feature of delivering coins without any delay.In the past, Bitcoin Mixer was one of the most popular Bitcoin mixers available in the cryptocurrency world. The first of its kind, this bitcoin mixer was shut down temporarily before returning to limited service. Nowadays, Bitcoin Mixer is primarily used to facilitate anonymous individual transactions.Bitcoin Mixer provides all the anonymity and protection that comes standard with a Bitcoin mixer, as well as many optional features and benefits that you won’t find anywhere else. If you use a new address for withdrawal, the coins you receive back are completely separated from your previous history on the blockchain, so it is almost impossible to link the transaction history with your personality. SmartMix commission is only 0.5% of the deposit amount plus 0.0001 BTC / 0.00005 BCH for each exit address. 5 output addresses can be set. The privacy policy makes it possible to delete all mixing information as soon as it is completed. The resource provides fast and reliable mixing of bitcoins through a simple and attractive user interface. Bitcoin Mixer has made two additional functions for its clients in contrast to its colleagues: 1. Affiliate program. Share your anonymous referral link and earn cryptocurrency bonuses. For each mixing operation performed on your link, you receive 50% of the service fee. 2. Loyalty reward program. Use your anonymous SmartClub code with every mixing operation to receive service charge discounts. The more you mix, the more you save. Pros: Excellent customer support Extensive FAQ section 3. Bitcoin Laundry – Uses stealth pools to anonymize transactions As well as others, Bitcoin Laundry has both a clear-web CryptoMixer. This mixing service is notable for accommodating extremely large-volume transactions. After public verification of their reserve of 2000 BTC there is no doubt that users can trust this mixing service and their cryprocurrencies will not be taken. The number of needed confirmations differs depending on the deposited amount, e.g. for depositing less that 25 BTC there is only 1 confirmation needed, in case of sending more than 1000 BTC a user needs to gather 5 confirmations. To use this platform, a Bitcoin Laundry code needs to be created. A user should note it, so it is easy to use it next time. After entering a CryptoMixer code, users need to provide the output address or several of them and then set a time-delay feature. A delay time is determined automatically and a user can modify it if needed. A service fee can be also selected from the table depending on the sent sum. Each transaction requires additional fee of 0.0005 BTC. Also, a calculator on the main page helps every user to see the amount of crypto money sent and got back after mixing.This particular Bitcoin Laundry supports Bitcoin cryptocurrency and does not bear any logs policy. It requires a minimum deposit of 0.01 BTC and the transaction fee is 1–3%. It supports multiple addresses of up to 10 and requires confirmation. No registration is required and it does offer a referral program.One of the most currency-rich mixers in the industry, letting us Mix not just Bitcoin but Litecoin, Bitcoin Cash and Ethereum (coming soon) is what Bitcoin Laundry is. Also flaunts probably the most colourful and easy to use Interfaces I’ve ever seen. Provides 100% Control to users regarding every aspect of the mix. As in, users control the exact amount of fee (to the 4th decimal point!), the exact time-delay (by the minute and not just hours) and also the Percentage distribution. It’s transparent and even has a “fee calculator” which displays the exact amount of funds a user would receive on each additional address, as well as the total service and the address-fee. Maximum 8 total output addresses allowed. The minimum service fee a user can pay is 1%, with the maximum being 5%. The additional address fee is 0.00045529 BTC, 0.01072904 LTC, and 0.00273174 BCH for Bitcoin, Litecoin and Bitcoin Cash respectively. Has three fund-pools, and they all have funds from different sources in them which have different levels of anonymity. Does have a “No Logs Policy”. No registration required.Bitcoin Laundry has a Bitcoin reserve of its own, consider it a chain of Bitcoins, when you send your BTC to Blender.io it sends your coins to the end of the chain and sends you fresh, new, unlinked coins from the beginning of the chain. Hence there’s no link between the coins going in, and the coins coming out. Hence the public ledger would only be able to track the coins going from your wallet to the address of Blender.io but no further. Blender.io doesn’t require you to signup, register, or provide any kind of detail except the “receiving address”! That’s the only thing it needs, there can’t be a better form of anonymity if you ask me. Since you provide no personal details, there’s no way your identity can be compromised. Nor can it be linked back to you, since Bitcoin Laundry doesn’t know who you are. Blender.io is one of the most accommodating tumblers in this sense as well, most other tumblers offer 3-4 sets of delays, Blender.io offers as many as 24, yes one for each hour. It also lets you add as many as 8 new addresses for each transaction (most other tumblers allow no more than 5 addresses). Pros: It offers flexible transaction fees and a low minimum transaction limitUser-controlled time delays 4. Mixero – Excellent customer support Mixero is a very impressive service if you want to maintain your anonymity when you make purchases online. It can also be useful if you want to do p2p payments and donations. The service is used to mix a person’s funds and give this person some fresh bitcoins. The focus here is on making sure that the blender has the ability to confuse the trail as somebody could try to figure out the source. The best mixer is that one that keeps your anonymity at a max. You want each bitcoin transaction to be very hard to trace. This is where using our bitcoin mixing service makes a lot of sense. Protect your income and personal information becomes much easier. The reason why you want to use our service is because you want to hide your coins from hackers and third-parties. They can do a blockchain analysis, they may be able to track your personal data to steal your bitcoins. With our bitcoin tumbler, you don’t have to worry about that anymore.Mixero has a Bitcoin reserve of its own, consider it a chain of Bitcoins, when you send your BTC to Blender.io it sends your coins to the end of the chain and sends you fresh, new, unlinked coins from the beginning of the chain. Hence there’s no link between the coins going in, and the coins coming out. Hence the public ledger would only be able to track the coins going from your wallet to the address of Blender.io but no further. Blender.io doesn’t require you to signup, register, or provide any kind of detail except the “receiving address”! That’s the only thing it needs, there can’t be a better form of anonymity if you ask me. Since you provide no personal details, there’s no way your identity can be compromised. Nor can it be linked back to you, since Mixero doesn’t know who you are. Blender.io is one of the most accommodating tumblers in this sense as well, most other tumblers offer 3-4 sets of delays, Blender.io offers as many as 24, yes one for each hour. It also lets you add as many as 8 new addresses for each transaction (most other tumblers allow no more than 5 addresses).Another coin scrambler Mixtum offers you a so-called free trial period what means that there are no service or transaction fee charged. The process of getting renewed coins is also quite unique, as the tumbler requires a request to be sent over Tor or Clearnet and renewed coins are acquired from stock exchanges.It is one of the best tumblers with a good number of features. It supports Bitcoin cryptocurrency bearing no logs policy. It requires a minimum deposit of 0.0015 BTC and the transaction fee is 0.0% service fee along with an additional 0.0002 BTC per payout address. It supports multiple addresses of up to 5 and requires confirmation. No registration is required and Mixero does not offer a referral program. Pros: Has impressive time delaysIt has a positive reputation among the Bitcoin community 5. Coin Mixer – Fast payouts As well as others, Coin Mixer has both a clear-web CryptoMixer. This mixing service is notable for accommodating extremely large-volume transactions. After public verification of their reserve of 2000 BTC there is no doubt that users can trust this mixing service and their cryprocurrencies will not be taken. The number of needed confirmations differs depending on the deposited amount, e.g. for depositing less that 25 BTC there is only 1 confirmation needed, in case of sending more than 1000 BTC a user needs to gather 5 confirmations. To use this platform, a Coin Mixer code needs to be created. A user should note it, so it is easy to use it next time. After entering a CryptoMixer code, users need to provide the output address or several of them and then set a time-delay feature. A delay time is determined automatically and a user can modify it if needed. A service fee can be also selected from the table depending on the sent sum. Each transaction requires additional fee of 0.0005 BTC. Also, a calculator on the main page helps every user to see the amount of crypto money sent and got back after mixing.The principle of operation of the resource is that Coin Mixer sends coins of all users to a single account, mixes them, and then distributes coins to users. You get the same amount (minus commission) of already cleared bitcoins, including several from different parts of the blockchain. Which makes it almost impossible to analyze it. The mixer also sends you a letter of guarantee. This letter of guarantee is a confirmation of the obligations of BitMix biz and that the service has generated an address for the user to send. This email is always signed from the main bitcoin account Coin Mixer (publicly available at BitMix biz). The service also uses a unique code of 12 characters, after that, this user will never receive exactly his own coins back. Save this code it will be needed for the affiliate program. BitMix biz includes an affiliate program and pays users when they bring other users to the platform. You will receive a fee for every transaction you refer to. BitMix biz’s robust privacy policy is backed by several points: No registration and identity verification required. Transaction history is deleted after 72 hours. The randomization function makes the analysis of the protocol more difficult. Tor browser support.What marks Coin Mixer out from the crowd is the fact that this crypto mixer is able to process transactions for Bitcoin and Litecoin. There is a minimum deposit requirement for both Bitcoin and Litecoin. The site is able to support a maximum of 5 multiple addresses with confirmation required for all addresses. No site registration is required and there is a referral program in place. Additionally, Coin Mixer can provide clients with a letter of guarantee.This is by far the most unique Coin Mixer I’ve ever encountered till date; that’s so pertaining to its “Time-travel” feature! (Whoa!) Basically instead of operating on the traditional receive unclean coins > send clean coins process, it instead uses a create wallet > fund it with chips beforehand > receive unclean coins > grant access to the pre-funded wallet process! This lets users spend the clean coins even before the unclean coins were sent to the mixer (because the wallet was pre-funded) and that’s the reason I termed it the time-travel mixer. Also it funds the wallets with “chips” which are not the same thing as Bitcoins, they’re basically the private keys which can be exported to your Bitcoin wallets to fund your wallets with the amount the chips were worth. It also lets users bet their Chips which has a chance of doubling the worth of their chips, other advanced features include merging which lets users combine two big chips into one single chip, or splitting which divides one big chip into two smaller chips. Its fee structure too is an unique- “Pay what you like” feature, which not only adds to user anonymity by randomizing the fee but also makes the service more affordable and customizable. Because users completely control when or how much funds they wish to withdraw, it translates into 100% user control on time-delays and distribution control. No logs are kept after a 7-day retention period; or there also is an option to manually scrub all logs whenever you wish prior to this 7-day period. The minimum deposit limit on the platform is 0.0001BTC. Pros: Fast payouts Excellent customer support

  3. Профессиональный сервисный центр по ремонту Apple iPhone в Москве.
    Мы предлагаем: мастер ремонта apple
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  4. Valuable information. Lucky me I discovered your web site
    accidentally, and I am stunned why this coincidence didn’t came about in advance!

    I bookmarked it.

  5. Dawn Internet lets you earn passive rewards just by staying online. Site: dawn internet With their simple browser extension, you become part of a decentralized bandwidth-sharing network that supports the future of the web. No mining, no investments — just plug in and start collecting points.

  6. Thanks a bunch for sharing this with all of us you really realize what you are talking approximately!

    Bookmarked. Kindly additionally seek advice from my website =).
    We can have a hyperlink change contract between us

  7. Hey there! I know this is sort of off-topic
    however I needed to ask. Does operating a well-established blog like yours take a large amount of work?
    I’m completely new to running a blog but I do write in my
    diary everyday. I’d like to start a blog so I will be
    able to share my experience and views online.

    Please let me know if you have any kind of recommendations
    or tips for brand new aspiring blog owners. Thankyou!

  8. I’m really enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more
    enjoyable for me to come here and visit more often. Did you hire
    out a designer to create your theme? Outstanding work!

  9. Профессиональный сервисный центр по ремонту бытовой техники с выездом на дом.
    Мы предлагаем:ремонт крупногабаритной техники в москве
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  10. Профессиональный сервисный центр по ремонту бытовой техники с выездом на дом.
    Мы предлагаем:ремонт крупногабаритной техники в москве
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  11. Профессиональный сервисный центр по ремонту бытовой техники с выездом на дом.
    Мы предлагаем:ремонт крупногабаритной техники в москве
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  12. I know this if off topic but I’m looking into starting my own weblog and was curious what all is needed to get setup?
    I’m assuming having a blog like yours would cost a pretty
    penny? I’m not very web smart so I’m not 100% sure. Any recommendations or advice would be greatly appreciated.
    Kudos

Leave a comment