<?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>javascript Archives - MalaysiaSky</title>
	<atom:link href="https://www.malaysiasky.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.malaysiasky.com/tag/javascript/</link>
	<description>Travel, Coffee, Code</description>
	<lastBuildDate>Sat, 14 Sep 2019 15:41:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.5</generator>

<image>
	<url>https://www.malaysiasky.com/wp-content/uploads/2018/06/favicon.png</url>
	<title>javascript Archives - MalaysiaSky</title>
	<link>https://www.malaysiasky.com/tag/javascript/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Jquery Validation Required Multiple Condition</title>
		<link>https://www.malaysiasky.com/jquery-validation-required-multiple-condition/</link>
					<comments>https://www.malaysiasky.com/jquery-validation-required-multiple-condition/#respond</comments>
		
		<dc:creator><![CDATA[tuanshah]]></dc:creator>
		<pubDate>Sun, 17 Apr 2016 03:57:32 +0000</pubDate>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery validation]]></category>
		<category><![CDATA[multiple required]]></category>
		<guid isPermaLink="false">http://www.malaysiasky.com/?p=272</guid>

					<description><![CDATA[<p>This is snippet for how to set rules if you have few condition for error message. Example when user select value1, required is true but when user select value2, required is false &#160; Set&#46;&#46;&#46;</p>
<p>The post <a href="https://www.malaysiasky.com/jquery-validation-required-multiple-condition/">Jquery Validation Required Multiple Condition</a> appeared first on <a href="https://www.malaysiasky.com">MalaysiaSky</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is snippet for how to set rules if you have few condition for error message. Example when user select value1, required is true but when user select value2, required is false</p>
<p>&nbsp;</p>
<p><strong>Set condition</strong></p>
<pre> phone: {
   required: function (element) {
     if($("selector").val() == 'value') {
     return true;
     }
     else {
     return false;
     }
 },
 minlength: 6
 },
</pre>
<p>&nbsp;</p>
<p><strong>Set error message</strong></p>
<pre> phone: {
  required: "phone number is required",
  minlength: "please key in atleast 6 digit"
 }
</pre>
<p>Here also few related <a href="https://www.malaysiasky.com/category/programming/" target="_blank" rel="noopener noreferrer">post that might interested you</a></p>
<p>The post <a href="https://www.malaysiasky.com/jquery-validation-required-multiple-condition/">Jquery Validation Required Multiple Condition</a> appeared first on <a href="https://www.malaysiasky.com">MalaysiaSky</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.malaysiasky.com/jquery-validation-required-multiple-condition/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 30/147 objects using Disk
Page Caching using Disk: Enhanced 
Content Delivery Network via N/A
Lazy Loading (feed)
Minified using Disk
Database Caching 40/84 queries in 0.011 seconds using Disk

Served from: www.malaysiasky.com @ 2026-06-17 00:42:05 by W3 Total Cache
-->