<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Jquery on Laïla Atrmouh</title>
    <link>/en/tags/jquery/</link>
    <description>Recent content in Jquery on Laïla Atrmouh</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
    <lastBuildDate>Tue, 22 Mar 2016 18:53:53 +0000</lastBuildDate>
    <atom:link href="/en/tags/jquery/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to add a new stock option in Woocommerce</title>
      <link>/en/posts/2016/03/how-to-add-a-new-stock-option-in-woocommerce/</link>
      <pubDate>Tue, 22 Mar 2016 18:53:53 +0000</pubDate>
      <guid>/en/posts/2016/03/how-to-add-a-new-stock-option-in-woocommerce/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;👴 &lt;em&gt;Careful&lt;/em&gt; You&amp;rsquo;re reading an old article ! Some links might be broken and content may be outdated&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Sometimes, clients can come up with some pretty creative ways to handle their inventory … It was the case for me with a customer who was using WooCommerce.&lt;/p&gt;&#xA;&lt;p&gt;I had to add a third option but the stock options was not customizable. I ended up deleting the native dropdown of stock options and I implemented a custom field.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Look for a word in a group of div using only jQuery</title>
      <link>/en/posts/2016/03/look-for-a-word-in-a-group-of-div-using-only-jquery/</link>
      <pubDate>Tue, 22 Mar 2016 18:44:23 +0000</pubDate>
      <guid>/en/posts/2016/03/look-for-a-word-in-a-group-of-div-using-only-jquery/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;👴 &lt;em&gt;Careful&lt;/em&gt; You&amp;rsquo;re reading an old article ! Some links might be broken and content may be outdated&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;For an old project, I had to implement a search tool in a static page. No option for me to use any server side language, I had to implement that search tool using Javascript / jQuery.&lt;/p&gt;&#xA;&lt;p&gt;The following function&amp;rsquo;s purpose is to :&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Search amongst a group of divs that have the class qa-faqs if a word is present in the content&lt;/li&gt;&#xA;&lt;li&gt;Exclude stop-words in french and in english from the query entered by the user&lt;/li&gt;&#xA;&lt;li&gt;List of words to exclude is in the var words_to_exclude&lt;/li&gt;&#xA;&lt;li&gt;Order the divs by data-relevance (times the searched word appears in each div)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Please note that the following function uses the awesome plugin &lt;a href=&#34;http://bartaz.github.io/sandbox.js/jquery.highlight.html&#34;&gt;jQuery.highlight&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
