<?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>How To Solutions &#187; Javascript</title>
	<atom:link href="http://how-to-solutions.com/category/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://how-to-solutions.com</link>
	<description>Giving You Computer Solutions</description>
	<lastBuildDate>Wed, 25 Nov 2009 10:35:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Javascript Wildcard with jQuery</title>
		<link>http://how-to-solutions.com/javascript-wildcard-with-jquery.html</link>
		<comments>http://how-to-solutions.com/javascript-wildcard-with-jquery.html#comments</comments>
		<pubDate>Wed, 01 Oct 2008 22:03:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://how-to-solutions.com/?p=98</guid>
		<description><![CDATA[


One of the developers I work with came up with a handy bit of JavaScript that uses a wildcard to look for a div that has &#8220;div-comment-&#8221; in its ID. It then does a display none on them. The handy thing about this basic bit of script is that it can be used across a [...]]]></description>
			<content:encoded><![CDATA[<p>One of the developers I work with came up with a handy bit of JavaScript that uses a wildcard to look for a div that has &#8220;div-comment-&#8221; in its ID. It then does a display none on them. The handy thing about this basic bit of script is that it can be used across a website to edit the css.</p>
<p>Remember for this to work you will need <a title="jQuery" href="http://jquery.com/" target="_blank">jquery</a> to be called in within the head of your page. This can be done be done by downloading jquery from <a title="jQuery" href="http://code.google.com/p/jqueryjs/downloads/list" target="_blank">here</a> and using code like this in your page head&#8230;</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>&lt;script language=&#8221;JavaScript&#8221; type=&#8221;text/javascript&#8221; src=&#8221;https://yourwebsite.com/jquery-1.2.6.js&#8221;&gt;&lt;/script&gt;</td>
</tr>
</tbody>
</table>
<p><strong>Example Use</strong></p>
<p>Imagine you have a series of div&#8217;s that are displayed on a page such as  comment boxes. Those div&#8217;s have ID&#8217;s of div-comment-1, div-comment-2, div-comment-3 and so on. You want to click</p>
<p>So here&#8217;s the JavaScript you put in the head of the page.</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>&lt;script&gt;<br />
function MyFunction() {<br />
$(&#8221;div[id*='div-comment-']&#8220;).css(&#8217;display&#8217;, &#8216;none&#8217;);<br />
}<br />
&lt;/script&gt;</td>
</tr>
</tbody>
</table>
<p>And the link will look like this..</p>
<table border="0" bgcolor="#c0c0c0">
<tbody>
<tr>
<td>&lt;a href=&#8221;javascript: MyFunction();&#8221;&gt;</td>
</tr>
</tbody>
</table>
<p>That link could be in a text format or in the form of a button/image.</p>
<p>Essentially this handy bit of JavaScript  can be used endlessly across a website to give the user more control over the look and appearance of the page.</p>
<p>
<SCRIPT charset="utf-8" type="text/javascript" src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822/US/supebook-20/8001/9396adfb-b6b2-4a97-80fb-58844132f2b0"> </SCRIPT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Fsupebook-20%2F8001%2F9396adfb-b6b2-4a97-80fb-58844132f2b0&#038;Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT></p>
]]></content:encoded>
			<wfw:commentRss>http://how-to-solutions.com/javascript-wildcard-with-jquery.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
