<?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; jquery</title>
	<atom:link href="http://blog.interakt.hr/?cat=9&#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>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>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>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>
		<item>
		<title>jQuery &#8211; this + class</title>
		<link>https://blog.interakt.hr/?p=531</link>
		<comments>https://blog.interakt.hr/?p=531#comments</comments>
		<pubDate>Mon, 26 Jun 2017 17:31:31 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=531</guid>
		<description><![CDATA[Problem: Trebamo selektirati sve elementa #polje unutar svakog  elementa klase .stavka koristeći this: Ovo nam neće pomoći jer je pogrešno: Rješenje je $(this).find():]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> Trebamo selektirati sve elementa <em>#polje </em>unutar svakog  elementa klase <em>.stavka </em>koristeći<em> this:</em></p>
<p>Ovo nam neće pomoći jer je pogrešno:<em> </em></p>
<pre class="brush: plain; title: ; notranslate">
$(&quot;.stavka&quot;).each(function(){
 return $(&quot;this #polje&quot;).val();
});
</pre>
<p><strong>Rješenje je $(this).find():</strong><em> </em></p>
<pre class="brush: plain; title: ; notranslate">
$(&quot;.stavka&quot;).each(function(){
 return $(this).find(&quot;#polje&quot;).val();
 });
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=531</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery &#8211; dohvat rel atributa iz liste</title>
		<link>https://blog.interakt.hr/?p=500</link>
		<comments>https://blog.interakt.hr/?p=500#comments</comments>
		<pubDate>Sat, 19 Nov 2016 12:10:51 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=500</guid>
		<description><![CDATA[Problem: lista ddl_automobili  ima više opcija. Osim vrijednosti i naziva opcije tu je i rel atribut. Kod dohvata vrijednosti potrebno je dohvatiti rel atribut odabrane opcije. Rješenje:]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> lista ddl_automobili  ima više opcija. Osim vrijednosti i naziva opcije tu je i rel atribut. Kod dohvata vrijednosti potrebno je dohvatiti rel atribut odabrane opcije.</p>
<pre class="brush: plain; title: ; notranslate">

&lt;select name=&quot;ddl_automobili&quot; id=&quot;ddl_automobili&quot;&gt;

&lt;option value=&quot;1&quot; rel=&quot;a&quot;&gt;Audi&lt;/option&gt;
&lt;option value=&quot;2&quot; rel=&quot;b&quot;&gt;Mercedes&lt;/option&gt;
&lt;option value=&quot;3&quot; rel=&quot;c&quot;&gt;Seat&lt;/option&gt;

&lt;/select&gt;
</pre>
<p><strong>Rješenje: </strong></p>
<pre class="brush: plain; title: ; notranslate">

//vrijednost selektiranog rel
var relVrijednost = $(&quot;#ddl_automobili&quot;).find('option:selected').attr('rel'));
</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=500</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery &#8211; testiranje mail adrese</title>
		<link>https://blog.interakt.hr/?p=466</link>
		<comments>https://blog.interakt.hr/?p=466#comments</comments>
		<pubDate>Thu, 20 Aug 2015 14:36:40 +0000</pubDate>
		<dc:creator>SysBlog</dc:creator>
				<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://systasis.biz/blog/?p=466</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; title: ; notranslate">
function isEmail( str ) {
   return (/^[a-zA-Z0-9.!#$%&amp;'*+\/=?\^_`{|}~\-]+@[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*$/).test( str );
}</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.interakt.hr/?feed=rss2&#038;p=466</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
