title: Hide Specific Image in Gallery Using Jquery
body: <p>hi every one i want to just hide href which have NO Image Src
  here is my website link where i want to do this..</p>
  
  <p><a href="http://www.minatocars.com/stockdetails.aspx?ID=996" rel="nofollow">Click here to see my site page</a></p>
  
  <p>i have Done this with jSFiddle but want to implement this in my website but dont figur it out why this is not working on my site</p>
  
  <p><a href="http://jsfiddle.net/7cnQN/71/" rel="nofollow"><code>JSFiddle</code></a></p>
  
  <p><strong>What i am trying to do is below</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      function pageLoad(){
          $('div#right_contan#&lt;%=FormView1.ClientID %&gt; div.img_slider_car p.thumbs a').each(function(index) {
  
              if ($('a')[index].href == 'http://localhost:37245/NewPeaceAuto - Steer_Well/WebStock_Images/noimage.png') {
                  $(this).hide();
              }
              else {
                  $(this).show();
  
              }
          });
      };
      &lt;/script&gt;
  </code></pre>
  
  <p>here is my Source Code in asp.net</p>
  
  <p><strong>javascript Source in Master Page</strong></p>
  
  <pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
          &lt;Scripts&gt;
              &lt;asp:ScriptReference Path="~/js/jquery.js" /&gt;
              &lt;asp:ScriptReference Path="~/js/jquery-1.4.2.js" /&gt;
              &lt;asp:ScriptReference Path="~/js/jquery.min.js" /&gt;
              &lt;asp:ScriptReference Path="~/js/jquery-ui-1.8.18.custom.min.js" /&gt;
              &lt;asp:ScriptReference Path="~/js/jquery.tools.min.js" /&gt;
              &lt;asp:ScriptReference Path="~/js/custom.js" /&gt;
              &lt;asp:ScriptReference Path="~/js/hoverIntent.js" /&gt;
              &lt;asp:ScriptReference Path="~/js/menu.js" /&gt;
          &lt;/Scripts&gt;
      &lt;/asp:ScriptManager&gt;
  </code></pre>
  
  <p><strong>Custom User Control Code inside page.aspx</strong> (i am getting images in css class thumbs)</p>
  
  <pre><code>&lt;asp:FormView ID="FormView1" runat="server" DataSourceID="odsSTOCK"&gt;
          &lt;ItemTemplate&gt;
              &lt;div class="img_slider_car" style="width:670px;"&gt;
                  &lt;div&gt;
                      &lt;img src="images/Detail_Car_Img.png" /&gt;
                      &lt;p class="CarDetail_headertext"&gt;
                          &lt;%#Eval("make")%&gt;
                          &amp;nbsp;&amp;nbsp;
                          &lt;%#Eval("model_description")%&gt;
                          &amp;nbsp;&amp;nbsp;&lt;%#Eval("MODEL")%&gt;&lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div class="CarDetail_Right"&gt;
                      &lt;p style="margin-left: 8px; margin-top: 0;"&gt;
                          &lt;a href="Negotiation.aspx?id=&lt;%#Eval("ID")%&gt;"&gt;
                              &lt;input id="btnNego" value="Negotiation" type="button" class="button_3" style="width:100px"/&gt;
                          &lt;/a&gt;&lt;a href="EnquiryForm.aspx?id=&lt;%#Eval("ID")%&gt;"&gt;
                              &lt;input id="btnEnquiry" value="Enquiry" type="button" class="button_1" /&gt;
                      &lt;/p&gt;
                      &lt;ul&gt;
                          &lt;li&gt;&lt;a href=""&gt;Chasiss: &lt;b&gt;
                              &lt;%#Eval("chassis_no")%&gt;
                          &lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href=""&gt;Body Type:&lt;b&gt;
                              &lt;%#Eval("make_category")%&gt;
                          &lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href=""&gt;Model Year: &lt;b&gt;
                              &lt;%#Eval("MODEL")%&gt;
                          &lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href=""&gt;Trans: &lt;b&gt;
                              &lt;%#Eval("Transmission")%&gt;
                          &lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href=""&gt;Color: &lt;b&gt;
                              &lt;%#Eval("COLOR")%&gt;
                          &lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href=""&gt;Mileage: &lt;b&gt;
                              &lt;%#Eval("mileage")%&gt;
                          &lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href=""&gt;Grade: &lt;b&gt;
                              &lt;%#Eval("veh_grade")%&gt;
                          &lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a href=""&gt;Fuel Type: &lt;b&gt;
                              &lt;%#Eval("fuel_type")%&gt;
                          &lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/div&gt;
  
                  &lt;p style="padding-top:21px;" &gt;
                      &lt;img id="largeImg" src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%#Eval("IMAGE1")%&gt;" alt="Large image"  width="120px" height="90px" /&gt;
                  &lt;/p&gt;
                  &lt;p class="thumbs" style="width: 672px;"&gt;
                      &lt;a href="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE1") %&gt;" title="&lt;%# Eval("make") %&gt;  &lt;%#Eval("model_description")%&gt;"&gt;
                          &lt;img src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE1") %&gt;" /&gt;&lt;/a&gt; &lt;a href="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE2") %&gt;"
                              title="&lt;%# Eval("make") %&gt;  &lt;%#Eval("model_description")%&gt;"&gt;
                              &lt;img src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE2") %&gt;" /&gt;&lt;/a&gt; &lt;a href="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE3") %&gt;"
                                  title="&lt;%# Eval("make") %&gt;&lt;%#Eval("model_description")%&gt;"&gt;
                                  &lt;img src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE3") %&gt;" /&gt;&lt;/a&gt; &lt;a href="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE4") %&gt;"
                                      title="&lt;%# Eval("make") %&gt;&lt;%#Eval("model_description")%&gt;"&gt;
                                      &lt;img src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE4") %&gt;" /&gt;&lt;/a&gt; &lt;a href="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE5") %&gt;"
                                          title="&lt;%# Eval("make") %&gt;&lt;%#Eval("model_description")%&gt;"&gt;
                                          &lt;img src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE5") %&gt;" /&gt;&lt;/a&gt; &lt;a href="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE6") %&gt;"
                                              title="&lt;%# Eval("make") %&gt;&lt;%#Eval("model_description")%&gt;"&gt;
                                              &lt;img src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE6") %&gt;" /&gt;&lt;/a&gt;
                      &lt;a href="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE7") %&gt;" title="&lt;%# Eval("make") %&gt;  &lt;%#Eval("model_description")%&gt;"&gt;
                          &lt;img src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE7") %&gt;" /&gt;&lt;/a&gt; &lt;a href="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE8") %&gt;"
                              title="&lt;%# Eval("make") %&gt;  &lt;%#Eval("model_description")%&gt;"&gt;
                              &lt;img src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE8") %&gt;" /&gt;&lt;/a&gt; &lt;a href="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE9") %&gt;"
                                  title="&lt;%# Eval("make") %&gt;  &lt;%#Eval("model_description")%&gt;"&gt;
                                  &lt;img src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE9") %&gt;" /&gt;&lt;/a&gt; &lt;a href="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE10") %&gt;"
                                      title="&lt;%# Eval("make") %&gt;  &lt;%#Eval("model_description")%&gt;"&gt;
                                      &lt;img src="&lt;%=appdata.Stk_Img_Path %&gt;&lt;%# Eval("IMAGE10") %&gt;" /&gt;&lt;/a&gt;
                  &lt;/p&gt;
              &lt;/div&gt;
  
          &lt;/ItemTemplate&gt;
      &lt;/asp:FormView&gt;
  </code></pre>
  
  <p>plz suggest me the better way to do this</p>