<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SysBlog &#187; JavaScript</title>
	<atom:link href="http://blog.interakt.hr/?cat=10&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://blog.interakt.hr</link>
	<description>...mic po mic...</description>
	<lastBuildDate>Tue, 24 Mar 2026 11:53:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>jQuery &#8211; set option by value</title>
		<link>https://blog.interakt.hr/?p=816</link>
		<comments>https://blog.interakt.hr/?p=816#comments</comments>
		<pubDate>Tue, 31 Mar 2020 11:03:03 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=816</guid>
		<description><![CDATA[source: https://stackoverflow.com/questions/314636/how-do-you-select-a-particular-option-in-a-select-element-in-jquery]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">$('.selDiv option[value=&quot;SEL1&quot;]').prop('selected', true)</pre>
<p>source: https://stackoverflow.com/questions/314636/how-do-you-select-a-particular-option-in-a-select-element-in-jquery</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=816</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript: Difference between two dates in days</title>
		<link>https://blog.interakt.hr/?p=805</link>
		<comments>https://blog.interakt.hr/?p=805#comments</comments>
		<pubDate>Sun, 01 Mar 2020 06:55:25 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=805</guid>
		<description><![CDATA[SOURCE: https://www.w3resource.com/javascript-exercises/javascript-date-exercise-8.php]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">

var date_diff_indays = function(date1, date2) {
dt1 = new Date(date1);
dt2 = new Date(date2);
return Math.floor((Date.UTC(dt2.getFullYear(), dt2.getMonth(), dt2.getDate()) - Date.UTC(dt1.getFullYear(), dt1.getMonth(), dt1.getDate()) ) /(1000 * 60 * 60 * 24));
}
</pre>
<p>SOURCE: https://www.w3resource.com/javascript-exercises/javascript-date-exercise-8.php</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=805</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery &#8211; replace one element with another</title>
		<link>https://blog.interakt.hr/?p=801</link>
		<comments>https://blog.interakt.hr/?p=801#comments</comments>
		<pubDate>Wed, 27 Nov 2019 14:29:14 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=801</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">$(&quot;#element_1&quot;).replaceWith(&quot;&lt;div id=&quot;element_2&quot;&gt;123&lt;div&gt;&quot;); </pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=801</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript &#8211; string to boolean</title>
		<link>https://blog.interakt.hr/?p=785</link>
		<comments>https://blog.interakt.hr/?p=785#comments</comments>
		<pubDate>Mon, 14 Oct 2019 07:41:49 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=785</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">var isTrueSet = (myValue == 'true');</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=785</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery &#8211; get checked radio button by class</title>
		<link>https://blog.interakt.hr/?p=757</link>
		<comments>https://blog.interakt.hr/?p=757#comments</comments>
		<pubDate>Wed, 11 Sep 2019 13:50:27 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=757</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">
element = $(&quot;input:radio.someClass:checked&quot;);
value = $(&quot;input:radio.someClass:checked&quot;).val();
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=757</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: find element by text</title>
		<link>https://blog.interakt.hr/?p=737</link>
		<comments>https://blog.interakt.hr/?p=737#comments</comments>
		<pubDate>Thu, 29 Aug 2019 13:28:16 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=737</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">
&lt;div&gt;This is a test&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Another Div&lt;/span&gt;&lt;/div&gt;

$('div:contains(&quot;Another&quot;)').css('background-color', 'red');
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=737</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery &#8211; get option by data attribute</title>
		<link>https://blog.interakt.hr/?p=656</link>
		<comments>https://blog.interakt.hr/?p=656#comments</comments>
		<pubDate>Fri, 04 Jan 2019 15:26:19 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=656</guid>
		<description><![CDATA[Get option with attribute data-lang=&#8217;en&#8217;: get value and text:]]></description>
			<content:encoded><![CDATA[<p>Get option with attribute data-lang=&#8217;en&#8217;:</p>
<pre class="brush: plain; title: ; notranslate">

var $myDDL = $('#dropDownList');

var $mySelectedOption = $('option[data-lang=&quot;en&quot;]',$myDDL);
</pre>
<p>get value and text:</p>
<pre class="brush: plain; title: ; notranslate">

var myValue = $mySelectedOption.val();

var myText = $mySelectedOption.text();
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=656</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery &#8211; get value and text from selected option</title>
		<link>https://blog.interakt.hr/?p=652</link>
		<comments>https://blog.interakt.hr/?p=652#comments</comments>
		<pubDate>Fri, 04 Jan 2019 15:21:31 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=652</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">

var $myDDL = $('#dropDownList');

var myValue = $('option:selected', 	$myDDL).val();

var myText = $('option:selected', $myDDL).text();
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=652</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript: length broja</title>
		<link>https://blog.interakt.hr/?p=565</link>
		<comments>https://blog.interakt.hr/?p=565#comments</comments>
		<pubDate>Tue, 20 Feb 2018 20:02:39 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=565</guid>
		<description><![CDATA[Problem: var x = 123; Zanima nas length varijable x. Rješenje: var x = 123; x.toString().length;]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<pre><code>var x = 123;</code></pre>
<p>Zanima nas length varijable x.</p>
<p><strong>Rješenje: </strong></p>
<pre><code>var x = 123;
x.toString().length;</code></pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=565</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: selekcija teksta iz dropdown liste</title>
		<link>https://blog.interakt.hr/?p=551</link>
		<comments>https://blog.interakt.hr/?p=551#comments</comments>
		<pubDate>Wed, 12 Jul 2017 11:55:57 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=551</guid>
		<description><![CDATA[&#160; Rješenje:]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><strong>Rješenje:</strong></p>
<pre class="brush: plain; title: ; notranslate">

$(&quot;#lista option:selected&quot;).text();
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=551</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
