<?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 &#8211; Programming blog &#8211; website programming blog, blog on website programming .net, java , php and mor</title>
	<atom:link href="https://www.searchenginegenie.com/programming-blog/category/javascript-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.searchenginegenie.com/programming-blog</link>
	<description></description>
	<lastBuildDate>Fri, 16 May 2014 11:44:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.4</generator>
	<item>
		<title>Hide/Show using JavaScript</title>
		<link>https://www.searchenginegenie.com/programming-blog/hideshow-using-javascript/</link>
					<comments>https://www.searchenginegenie.com/programming-blog/hideshow-using-javascript/#respond</comments>
		
		<dc:creator><![CDATA[Camilla]]></dc:creator>
		<pubDate>Sat, 19 Apr 2014 13:47:08 +0000</pubDate>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://www.searchenginegenie.com/programming-blog/?p=714</guid>

					<description><![CDATA[To hide the Div : style=&#8221;display:none&#8221;; To visible the Div : style=&#8221;display:block&#8221;; [php] &#60;html&#62;&#60;head&#62;&#60;script type=&#34;text/javascript&#34;&#62; function showdiv() { if(document.getElementById(&#8216;child&#8217;).checked) { document.getElementById(&#8216;adu&#8217;).style.display = &#34;block&#34;; } else { document.getElementById(&#8216;adu&#8217;).style.display = &#34;none&#34;; } if(document.getElementById(&#8216;adult&#8217;).checked) { document.getElementById(&#8216;adu&#8217;).style.display = &#34;none&#34;; } } &#60;/script&#62; &#60;/head&#62; &#60;table border=&#34;0&#34;&#62; &#60;tbody&#62; &#60;tr&#62; &#60;td&#62;Member Type&#60;/td&#62; &#60;td&#62; &#60;input id=&#34;adult&#34; onclick=&#34;showdiv();&#34; type=&#34;radio&#34; name=&#34;member&#34; value=&#34;Adult&#34; /&#62; &#60;input id=&#34;child&#34; [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>To hide the Div : style=&#8221;display:none&#8221;; </strong></p>
<p><strong>To visible the Div : style=&#8221;display:block&#8221;;</strong></p>
<p><script>// <![CDATA[
function showdiv() { if(document.getElementById('child').checked) { document.getElementById('adu').style.display = "block"; } else { document.getElementById('adu').style.display = "none"; } if(document.getElementById('adult').checked) { document.getElementById('adu').style.display = "none"; }  }
// ]]&gt;</script></p>
<p>[php]<br />
&lt;html&gt;&lt;head&gt;&lt;script type=&quot;text/javascript&quot;&gt;<br />
function showdiv()<br />
{<br />
if(document.getElementById(&#8216;child&#8217;).checked)<br />
{<br />
document.getElementById(&#8216;adu&#8217;).style.display = &quot;block&quot;;<br />
}<br />
else<br />
{<br />
document.getElementById(&#8216;adu&#8217;).style.display = &quot;none&quot;;<br />
}<br />
if(document.getElementById(&#8216;adult&#8217;).checked)<br />
{<br />
document.getElementById(&#8216;adu&#8217;).style.display = &quot;none&quot;;<br />
}<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;table border=&quot;0&quot;&gt;<br />
&lt;tbody&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Member Type&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;input id=&quot;adult&quot; onclick=&quot;showdiv();&quot; type=&quot;radio&quot; name=&quot;member&quot; value=&quot;Adult&quot; /&gt;<br />
&lt;input id=&quot;child&quot; onclick=&quot;showdiv();&quot; type=&quot;radio&quot; name=&quot;member&quot; value=&quot;Child&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;</p>
<p>&lt;div id=&quot;adu&quot; style=&quot;display:none&quot;&gt;<br />
&lt;tr&gt;&lt;td&gt;Name&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; value=&quot;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/div&gt;<br />
&lt;/tbody&gt;<br />
&lt;/table&gt;<br />
&lt;/html&gt;</p>
<p>[/php]</p>
<p><strong>Output:</strong></p>
<p>When you Click the Adult , you will not see the text box below.</p>
<p>When you click the child, the below text box will be visible.</p>
<table width="100%" cellspacing="1" cellpadding="4" bgcolor="">
<tbody>
<tr>
<td align="right" width="200" height="38"><span style="color: #000000;">Member Type</span></td>
<td align="left"><span style="color: #000000;"><input id="adult" name="member" type="radio" value="Adult" /> </span><span style="color: #ffffff; font-size: small;"><span style="color: #000000;">Adult</span><br />
</span><span style="color: #000000;"><input id="child" name="member" type="radio" value="Child" /> <span style="font-size: small;">Child</span></span></td>
</tr>
</tbody>
</table>
<table width="100%" cellspacing="1" cellpadding="4" bgcolor="">
<tbody>
<tr>
<td align="right" width="200" height="38">Name</td>
<td align="left">  <input id="parname" name="parname" type="text" value="" /> *</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.searchenginegenie.com/programming-blog/hideshow-using-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Validation Using Javascript</title>
		<link>https://www.searchenginegenie.com/programming-blog/validation-using-javascript/</link>
					<comments>https://www.searchenginegenie.com/programming-blog/validation-using-javascript/#respond</comments>
		
		<dc:creator><![CDATA[Camilla]]></dc:creator>
		<pubDate>Wed, 09 Apr 2014 12:44:21 +0000</pubDate>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">http://www.searchenginegenie.com/programming-blog/?p=686</guid>

					<description><![CDATA[ [php] &#60;html&#62; &#60;head&#62; &#60;script type=&#34;text/javascript&#34;&#62; function vali() { if(document.myform.FirstName.value==&#34;&#34;) { alert(&#34;Please enter the FirstName&#34;); document.myform.FirstName.focus(); return false; } } &#60;/script&#62; &#60;/head&#62; &#60;form method=&#34;post&#34; name=&#34;myform&#34; onsubmit=&#34;return vali();&#34;&#62; Name : &#60;input type=&#34;text&#34; name=&#34;FirstName&#34; /&#62; &#60;input type=&#34;submit&#34; value=&#34;Submit&#34; /&#62; &#60;/form&#62; &#60;/html&#62; [/php] Output: Name :]]></description>
										<content:encoded><![CDATA[<p><script type="text/javascript">// <![CDATA[
function vali() { if(document.myform.FirstName.value=="") { alert("Please enter the FirstName"); document.myform.FirstName.focus(); return false; } }
// ]]&gt;</script></p>
<form method="post" name="myform" onsubmit="return vali();"> [php]<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
function vali()<br />
{<br />
if(document.myform.FirstName.value==&quot;&quot;)<br />
{<br />
alert(&quot;Please enter the FirstName&quot;);<br />
document.myform.FirstName.focus();<br />
return false;<br />
}<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;form method=&quot;post&quot; name=&quot;myform&quot; onsubmit=&quot;return vali();&quot;&gt;<br />
Name : &lt;input type=&quot;text&quot; name=&quot;FirstName&quot; /&gt;<br />
&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; /&gt;<br />
&lt;/form&gt;<br />
&lt;/html&gt;<br />
[/php]</p>
<p><strong>Output:</strong><br />
Name : <input type="text" name="FirstName" /><br />
<input type="submit" value="Submit" /></p>
</form>
]]></content:encoded>
					
					<wfw:commentRss>https://www.searchenginegenie.com/programming-blog/validation-using-javascript/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/

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: www.searchenginegenie.com @ 2024-06-20 06:53:42 by W3 Total Cache
-->