Menu
  • HOME
  • TAGS

How to hide all divs except for one and negating the previous js?

javascript,jquery,html,css,hide

is this what you mean? You can use an if statement to see if the button clicked was "gallery" and then hide all of the children in #mainContent: $(function(){ $('#mainContent').children().hide() $('#home').fadeIn("Slow"); $('#menuBar').on('click', 'a', function(){ $('#mainContent').children().hide(); var el = $(this).attr('data-mainContent'); if(el == "gallery"){ $('#mainContent').children().hide() }else{ $('#mainContent div#' + el).fadeIn("Slow"); } });...

Worksheet_Change to hide rows in Excel

excel,vba,hide

The Rows("5:5") would be better as Rows(5). The method you used would be better as Range("5:5"). Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$B$2" Then Rows(5).EntireRow.Hidden = (UCase(Target.Value) = "ODD") End If End Sub Since comparing B2 to ODD already produces a True or False, you can dispense with...

jQuery to hide dummy button and show submit button

jquery,hide,show

Use classes--you've got a space in your second buttons ID: <script type="text/javascript"> if ($('input.checkbox_check').is(':checked')) { $('.hide-temp-submit').hide(); $('.show-submit').show(); } </script> Html: <input type="checkbox" class="checkbox_check" name="" value=""> <button class="login_button hide-temp-submit" style="background-color:#101010;color:grey;">Please Agree to Terms</button> <button class="login_button create_button show-submit" style="display:none">Create...

jQuery: need help hiding previously viewed element(s)

jquery,hide,show,show-hide,clear

Try css /* set `.albums [id^=album]` to `display:none` */ .albums [id^=album] { display:none; } js $(".albums-nav a").on("click", function(e) { // hide all `.album` $(".albums [id^=album]").hide(); // show `target` `.album` $($(this).attr("href")).show(); }); $(".albums-nav a").on("click", function(e) { $(".albums [id^=album]").hide(); $($(this).attr("href")).show(); }); .albums [id^=album] { display:none; } <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <div class="container">...

Hide a div at the end of countdown

javascript,jquery,timer,hide,countdown

Got the syntax from the github documentation page: $this.countdown(finalDate) .on('update.countdown', function(event) { $this.html(event.strftime('%D gün %H:%M:%S')); }) .on('finish.countdown', function() { $('#mydiv').hide(); }); http://api.jquery.com/hide/ http://hilios.github.io/jQuery.countdown/documentation.html EDIT: Just noticed the documentation says: Be aware thtat ALL events should be registered with the namespace *.countdown <!DOCTYPE html> <html> <head> <title>jQuery countdown test</title> <script...

PHP hide or cut part of image by unwanted text or sign on the picture [closed]

php,image,image-processing,imagemagick,hide

What you need is a face detection tool. For PHP, I know this script: https://github.com/mauricesvay/php-facedetection (Here is the detailed usage: http://www.codediesel.com/algorithms/face-detection-in-images-using-php/) Just for fun, take a look in Google's Algorithm for Maps License Plate Blur tool: http://static.googleusercontent.com/media/research.google.com/pt-BR//archive/papers/cbprivacy_iccv09.pdf...

Hide only part of text in TextView

android,text,view,hide

Although even i would appreciate for your case to strongly go with DroidWorm/Gabriella approach , just for the information of all the other folks who may see this in future. If you really wish to hide just a portion of your textview which has the entire string in itself, you...

Class function click show/hide

jquery,hide,show

You need to use . as a class selector jQuery(document).ready(function() { jQuery('.dots').on('click', function() { jQuery('.truncated_full_value').show(); jQuery('.text-before-truncate').hide(); }); }); # is an id selector. Also, you do not need to attach them in two seperate handlers. You can put both the show/hide in the same handler....

Hide show div, starting in Show mode

javascript,hide,show

It's a CSS issue. Set display: block; on the hidden element....

Hide or remove part of the content of an HTML element using CSS

html,css,hide

Try this css: label { visibility:collapse; } label input { visibility: visible; } Here is a jsfiddle: http://jsfiddle.net/entgqjzk/ I modified the css I found at Hide text node in element, but not children edit: This doesn't remove the whitespace as you indicated. I can't come up with anything better than...

JavaScript: how to hide multiple (thousands) rows in the html table

javascript,html,hide,show,tr

Probably the fastest way is to use a CSS rule, either by adding and removing a rule, or modifying one. Since the rows you wish to hide have a common name, you can use the equivalent of the following to hide the rows with a name of "1": tr[name="1"]{ display:...

Hide div based on dropdown selection

jquery,hide,show

Listen to the change event of both select elements. Iterate through them to determine how many have selected values, and conditional show the link based on the count. Updated Example var $selectElements = $('#region, #duration'); $selectElements.change(function (e) { var selectedCount = $selectElements.filter(function() { if (this.value) { return this; } }).length;...

jQuery - Show/hide has problems with centered items

jquery,hide,center,show

show and hide are both just changing the display CSS property, which seems to be causing block issues with the center element. You could use fadeIn and fadeOut instead: <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> function running(){ $("#hider").fadeIn("slow").fadeOut("slow", running); } $(document).ready(function(){ running(); }); </script> </head> <body> <center id="hider">Hiding...</center> </body>...

Hide DirectX9 game window on ShellExecute or CreateProcess

visual-c++,window,hide,directx-9

The STARTUPINFO.wShowWindow flag ends up in WinMain as the final parameter nCmdShow (https://msdn.microsoft.com/en-us/library/windows/desktop/ff381406(v=vs.85).aspx). There is no requirement that the created process adheres to this request. It is free to create as many visible windows as it likes. In fact, it's commonplace to completely ignore this flag. If you have the...

Hiding content depending on variable value

javascript,jquery,css,hide,show-hide

Execute this function providing the variable v: var checkVar = function(v) { var target = $('#answer'); if (parseInt(v) > 20) { target.hide(); } else { target.show(); } } For example, if the variable comes form a selection: $('#selectId').on('change', function() { checkVar($(this).val()); }); ...

How to specify an initial state on page load using js?

javascript,html,scroll,hide

Here is a simple way without making too many changes. $(window).scroll(function(){ fader(); }); function fader(t){ if($(window).scrollTop()>100){ $("#theDiv").fadeIn(t); }else{ $("#theDiv").fadeOut(t); } } $(document).ready(function() { fader(0); }); http://jsfiddle.net/GarryPas/ZtGK6/596/ If you don't want that fade at the start let me know....

Is it possible to hide a child element with parent of parent element? [closed]

javascript,css,hide,element,fadeout

by using jquery you can fade that like this: $(".upload-success").parent().parent().fadeOut(2000); //2000 milliseconds <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="grandma"> <span class="file-name">file name</span> <span class="percent">100%</span> <div class="clear"></div> <div class="mother"> <div class="upload-success"></div> </div> </div> ...

how to hide/show div with data filtering

html,hide,show

Adding an attribute like data-filter is not enough. You have to implement the filtering in some way. For example you could do it in the changeContent function you already have. You could: var filter = "."+$("#"+str).attr("data-type"); get the class you want to filter by from the data-type attribute in your...

Show and hide elements inside SVGs

javascript,function,svg,hide,show

You could get all the g elements and hide them, then show the one you want. <svg width="320px" height="210px" xmlns="http://www.w3.org/2000/svg"> <title>Javascript und SVG</title> <defs> <script type="text/javascript"> <![CDATA[ var id = 'name'; function place(id){ var gs = document.getElementsByTagName("g"); for (var i = 0; i < gs.length; i++) { gs[i].style.setProperty('display','none'); } var...

Hide div class on page load

javascript,jquery,html,css,hide

You don't need the signup div at all - I think it complicates things. Just start your modal background hidden so before your button click code add this: $('.modal-bg').css('display','none'); Example Update to stop your form showing up whilst your page loads I would add a js div: after your body...

$_GET variables - Why is previous data not hiding?

php,variables,get,hide

put the while part into an if. if(!isset($_GET['subcategory'])){ $sql = "SELECT * FROM categories WHERE category = '$subcategory' ORDER BY subcategory ASC"; $result = mysql_query($sql) or die(mysql_error() . "<br>" . $sql); $catNo = 1; echo "<table class='categorytable'> <tr class='categoryrow'>"; while ($row = mysql_fetch_array($result)) { echo '<td class="categorydata"><a href="computing.php?subcategory=' . strtolower($row['subcategory'])...

How to hide an element if another element contains any text

hide

thank you for the answers! This worked for me: if($('.one').text() == '') { $('#hello').hide; } ...

Hide
on click

javascript,jquery,css,hide,nav

This my attempt: make the #nav_expanded_nav always hidden. Then when #nav_hover its clicked change the visibility to visible. When an anchor tag is clicked inside the #nav_expanded_nav change its visibility back to hidden The same happens when the user leaves the #nav_expanded_nav. CSS: #nav_expanded_nav { visibility: hidden; } jQuery: $(document).ready(function()...

How do I hide a div when another divs are present?

javascript,html,css,hide,show

try this code <html> <head> <style type="text/css"> #hide_add_fname { padding: 20px; background: #f0f0f0; width: 200px; display: none; } #hide_edit_fname { padding: 20px; background: #f0f0f0; width: 200px; display: none; } #hide_delete_fname { padding: 20px; background: #f0f0f0; width: 200px; display: none; } </style> <script type="text/javascript"> function toggle_add_fname(id) { var divelement = document.getElementById(id);...

jQuery - hide option element by value

jquery,select,hide,html-select

If you can go with removing it, this seems to work in all browsers: $('select[name*="boxes"] option[value="box6"]').remove(); Tested in FF, Chrome, Safari, IE and Opera. Demo Fiddle...

Show/hide div on link click

jquery,html,click,hide,show

You can do something like this for hover: var hoverDivDescription = $(".hoverdiv").find(".description"); $(".showdiv").on("mouseenter mouseleave", function(ev) { if (ev.type == "moouseenter") { hoverDivDescription.show(); } else { hoverDivDescription.hide(); } }); Or for click: var hoverDivDescription = $(".hoverdiv").find(".description"); jQuery(function($) { $(".showdiv").on("click", function(ev) { ev.preventDefault(); hoverDivDescription.toggle(); }); }); See this codepen for an example...

If Radio button checked show div

javascript,hide,show,radio

you need to trigger the click $(document).ready(function () { $('input[type="radio"]').click(function () { if ($(this).attr("value") == "ABC") { $(".Box").hide('slow'); } if ($(this).attr("value") == "PQR") { $(".Box").show('slow'); } }); $('input[type="radio"]').trigger('click'); // trigger the event }); DEMO...

How to hide password in phonegap prompt

android,cordova,passwords,hide,prompt

I found my answer on this thread. Set inputType for an EditText? Turns out you just need to add one line in App Name\platforms\android\src\org\apache\cordova\dialogs\Notification.java promptInput.setInputType(0x00000081); ...

How to remove the parameters in url Java

java,jsp,url-rewriting,hide

String url="http://localhost:8084/blog1_1/title?uname=55%22"; String onlyUrl=url.substring(0,url.lastIndexOf("?"); //this has the URL ...

Cannot hide a button in C# by detecting if a GridView is empty after the GridView has been filtered

c#,gridview,hide

You will have to manually rebind the GridView after your custom filter logic.

Hide a div everyday except Thursday

javascript,html,hide

Since you are setting display to none initially, you'll want to only check if it's Thursday to set it to block. You can take out the hour stuff as well. Here's the final code: onload = function(){ var day = (new Date()).getDay(); var newDisplay = 'none'; // unless it's Thursday...

Hiding a SINGLE File (Apahe)

html,apache,.htaccess,file,hide

I suggest you put this page in a folder, and protect it with a password. There are many examples here or on the Internet. But like you do not really want to block the page, but just to hide, You can do this by adding a code at the end...

How to find cells that contain specific text then hide the entire row

excel,vba,excel-vba,hide,document

The function InStr withing your IF statement should do the trick. IF instr(cell.value, ".doc")> 0 then 'Code Here ...

How to hide a form after submit button is pressed

php,forms,hide

<?php //TASK 16 ENTER A STRING AND REVERSE IT if( isset( $_POST['usersString'] ) && !empty( $_POST['usersString'] ) ) { $str = $_POST['usersString']; $len = strlen($str); for($i=($len-1); $i>=0; $i--){ echo $str[$i]; } } else { ?> <form action="task16.php" method="POST"> Enter a string to reverse! <input type="text" name="usersString" /> <input type="submit" value="enter"...

jQuery, reveal/hide absolute div on click

javascript,jquery,html,css,hide

I would recommend using CSS transitions and adding a class to denote the menu is active. Here's the jsfiddle of the below code: http://jsfiddle.net/975va7qv/ HTML stays the same: <div class="container"> <a id="bars" href="#">Apri/Chiudi Menù</a> </div> <nav id="nav" class="nav-default"> <ul> <li>Home</li> <li>Servizi</li> <li>Portfolio</li> <li>Contatti</li> </ul> </nav> CSS - added new class...

jQuery .hide() element not working

jquery,hide

The ready event handler is not called with an event object like other event handlers. It's called with a reference to the jQuery object (intended to be used when the noConflict method has been used). When you try to call preventDefault on the value passed to the function, you get...

How to hide any div on a webpage by adding a specified parameter at the end of url?

javascript,jquery,html,css,hide

You can use this too. function getParameterByName(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } $(document).ready(function() { var hide_id= getParameterByName('hide'); /*just pass the name of query string parameter that...

how to hide column chart gridlines xlsxwriter

python,charts,hide,xlsxwriter,gridlines

If you take a look at the documentation for the chart class, there are the methods set_x_axis and set_y_axis. It takes a dictionary of formatting options. One of the options you can pass is {'visible': False}. You can also configure just the major or minor gridlines with {'major_gridlines' :{'visible': False}}...

jQuery/JS - Hiding specific dynamically created elements/buttons

javascript,jquery,dynamic,hide

If the buttons were added to the page after the page has loaded then they won't respond to any code (in the page before they were created) that references them. This is because new event listeners are added for the buttons when they are created and somehow they don't pickup...

showing part of theme only if has variable

php,html,hide

You could wrap the part you want to show / hide in an if ... endif condition. <?php if(is_active_sidebar('forum')) : ?> <!--forum--> <div class="col-sm-6"> <div class="panel panel-success"> <div class="panel-heading"> <h3 class="panel-title">Latest forum topics</h3> </div> <div class="panel-body"> </div> </div> </div> <!-- end of forum--> <?php endif; ?> Reference: Alternative syntax for...

How to hide “react-bootstrap modal” form that has preventDefault() inside its onSubmit?

hide,reactjs,preventdefault,onsubmit,react-bootstrap

You could just call the this.props.onRequestHide function inside of the handleSubmit function something like this: handleSubmit: fucntion() { /* ... */ this.props.onRequestHide(); e.preventDefault(); }, ...

jQuery toggle multiple classes

jquery,toggle,hide,show

You need to find the comment relative to the element clicked. In your case it is the previous element to the button, so use prev() with $(this) (which is the button clicked): JSFiddle: http://jsfiddle.net/TrueBlueAussie/vgs2wsz2/1/ $(".button").click(function() { $(this).prev(".comment").toggle(); }); Note: The ".comment" in prev() is not needed in this case, but...

Hiding Div When Clicking Inside Div

javascript,html,hide

You can just add the same toggle call on the div overlay itself: <div id="about" onclick="toggle()" style="display: none;">Text here</div> jsFiddle example...

How to change the character count result of a PHP query?

php,count,char,hide

Try this: http://jsfiddle.net/Twisty/dhbcdLL1/ Using JQuery, you can do this. function truncate(t, l) { if (t.length > l) { var parts = []; parts[0] = t.substr(0, l - 3); parts[1] = t.substr(l - 3); return parts[0] + "..." + "<span style='display: none;'>" + parts[1] + "</span>"; } else { return t;...

Hiding Events without a Description in FullCalendar + Google Calendar

jquery,fullcalendar,hide,google-calendar,information-hiding

From the docs: The function can also return false to completely cancel the rendering of the event. So you can do something like this eventRender: function(event, element, view) { if (!event.description) return false; } ...

jquery element + next

jquery,hide,element,next

You can try something like $('#PD_superContainer').nextUntil('p').last().next('p').hide() using nextAll('p') might cause issues if there are any other p element...

jQuery show/hide next div

jquery,toggle,hide,show

You can use parent() to point jQuery in the right path: jQuery(this).parent().next(".t_edit_cont").toggle(); Yet, a cleaner and more reliable approach would be to associate the clicked button and the div somehow. For example (using data- attributes): <input type="submit" value="Edit" class="edittopic" data-id="1" name="send" /> <div class="t_edit_cont" data-id="1"> Show hide content inside here......

Applescript How to Hide Finder Copy-Progress Bar?

applescript,progress-bar,hide,finder

Try this instead of your move: -- get the POSIX path of the destination folder set destinationPath to POSIX path of (Destination_Folder as string) -- looping through the items repeat with anItem in theItems -- get the POSIX path of the file to move set sourcePath to (POSIX path of...

javascript hide the rest of sections while onmouseover

javascript,html,hide,onmouseover

I'm fairly certain the issue is that you are loading your script in the <head> element in your document. This causes an issue because your script tries to loop over the DOM and make changes, but if your script is in the <head> tag, it's executing before the DOM that...

jQuery: fadeIn() after hide('slide')

jquery,hide,fade

Don't forget .dequeue! When you .queue a function, you must call .dequeue to inform jQuery that the function has completed. Your current function is adding .fadeIn to the queue, but since your queued function never "completes", it is never called. $('#myDiv').hide('slide').queue(function() { $(this).css({'background-image': 'url(images/picB.png)'}) .fadeIn() .dequeue(); //Tell jQuery to do...

Hide form A show form B, then hide form B show form A Java JFrame

java,swing,jframe,hide,show

You need to create a public static synchronized method to return the form and create it if is null. FormA.java /** * * @author joepa37 */ public class FormA extends javax.swing.JFrame { private static FormA f = null; public FormA() { initComponents(); } public static synchronized FormA getInstance(){ try {...

Elements not being hidden after animation is complete

jquery,jquery-animate,hide

From the docs on .animate() (emphasis mine) Complete Function If supplied, the complete callback function is fired once the animation is complete. This can be useful for stringing different animations together in sequence. The callback is not sent any arguments, but this is set to the DOM element being animated....

c++ beginning to background

c++,windows,background,hide

Usually you would use the WinMain entry point instead of main. But you need to tell your compiler that you're using WinMain which is compiler dependent. By the way, there is a simpler way to hide the console window. ShowWindow(GetConsoleWindow(), SW_HIDE); But be aware that using this method the console...

How do you make the input text disappear?

html,text,input,field,hide

Instead of using the placeholder attribute you can also try this: <input type="text" value="Type some text here" onfocus="if (this.value == 'Type some text here') {this.value=''}" /> ...

text show and hide with button php/js

php,jquery,text,hide,show

This will select and toggle all instances of dd on the entire page. $("button").click(function () { $("dd").slideToggle("slow"); }); This will select and toggle the intended instance of dd, closest to the button you pressed. $("button").click(function () { $(this).closest('dl').find('dd').slideToggle("slow"); }); It takes the button you actually pressed with ($this), finds the...

Javascript toggle click off

javascript,hide,expand

Try this: $(document).ready(function() { $('.nav-toggle').click(function() { var selected = $($(this).attr('href')); $(".tab").not(selected).hide(); selected.toggle(); }); }); Replace .tab with the class you use for your expandable DIVs....

BroadCast & Hide Activity android

android,android-activity,hide,broadcast

From the release notes for Android 3.1: Starting from Android 3.1, the system's package manager keeps track of applications that are in a stopped state and provides a means of controlling their launch from background processes and other applications. And Applications are in a stopped state when they are first...

Showing and hiding sections with CSS based on a drop-down option

html,css,hide,html-select

That's because <div> is not sibling of <option>, but <select>. And in CSS, there is no parent selector. So I'm afraid it's not possible with dropdown.

Trying to hide an anchor tag using prev() in Jquery

jquery,hide

prev() would select a sibling element, alongside span. You want parent() or closest(). function hideShows(){ $("span[title='show']").closest('a').hide(); } function hideShows() { $("span[title='show']").closest('a').hide(); } $(document).ready(function() { hideShows(); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <a href="some url"> <span title="show">Show</span> </a> <a href="#"><span title="noshow">Leave this...

I can't hide my paragraph with jQuery

javascript,jquery,hide

Below is your answer on 'How to hide ID element on click with jQuery' that should have probably been your question title. Answer: $('#paragraph').click(function() { $('#paragraph').hide(500); }); Also in your fiddle you weren't loading jQuery! <script src="//code.jquery.com/jquery-1.11.2.min.js"></script> Here is your updated working fiddle. https://jsfiddle.net/0xhg57e4/3/...

Swift - UITableView scroll event

uitableview,swift,events,scroll,hide

You can add UIScrollViewDelegate. After that you can implement scrollViewDidScroll method.

Embed video stop on div hide

html,video,hide,embed

Find the video tag inside the element you want to hide and pause it. If you do not have more than one video this should work (assuming you are using HTML5 video of course): <script type="text/javascript"> function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'block') { var video =...

Hide, show div with jQuery

jquery,hide,show

Try This, function slideonlyone(thechosenone) { $('.newboxes').each(function (index) { $(this).slideUp(600); if ($(this).attr("id") == thechosenone && !$(this).is(':visible')) { $(this).slideDown(200); } }); } Working Demo Alternatively, you don't need to use loop try it like, function slideonlyone(thechosenone) { $('.newboxes').slideUp(600); var $id=$('#'+thechosenone); if ( !$id.is(':visible')) { $id.slideDown(200); } } Live Demo...

JQuery - Hide Div when p is empty with multiple instances

jquery,if-statement,hide

Firstly only select the empty ps then only hide the divs they are in. $('.circletext').filter(':empty').closest('.sticker').hide(); ...

how to remove or hide div after page loading

javascript,html,hide

with Jquery: $("#divADV").hide() or with plain javascript: document.getElementById(divADV).style.display = 'none'; but you're better off just doing this in css: #divADV{ display: none; } ...

How can I hide the price of a product in Bigcartel?

html,css,hide,product,bigcartel

Instead of having a ton of conditional statements to check against product names, you may just want to have your portfolio products added to a "Portfolio" category and only hide the price for products in that category. Add this to the top of Customize Design > Advanced > Product: {%...

jQuery show child elements if they have specific class

jquery,css,hide,show

You have some typos: Instead of using .list you've used .menu Instead of using .show() you've used .show Next to that I think you can make your jQuery a bit simpler: $(function() { $(".list > li.active").show(); }); the $(function() { ... }) does exactly the same as the $(document).ready(function() {...

Hide a certain range of children jQuery

jquery,range,hide,children

Try setting className to 1, 2 -> 100 , and utilizing :gt() Selector selector function levels(stepNumber) { $("#meter").addClass(stepNumber) .find("li:gt(" + (stepNumber - 1) + ")") .hide(); } levels(2); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"> </script> <ol id="meter" class=""> <li>Page 1</li> <li>Page 2</li> <li>Page 3</li> <li>Page 4</li> </ol> Alternatively, to maintain adding className as one,...

jquery “show” effect shows wrong element

javascript,jquery,hide,show,mouseenter

Change the order of the images so that the replacement is next to the image it replaces. <%= link_to image_tag("Up.png", class: "Up"), '#' %> <%= link_to image_tag("UpHover.png", class: "UpHover"), '#' %> <%= link_to image_tag("Down.png", class: "Down"), '#' %> <%= link_to image_tag("DownHover.png", class: "DownHover"), '#' %> What's happening is that when...

My image gallery isn't working (jQuery)

jquery,html,hide,show

Use keyup instead of keypress $(document).keyup(function(event) { It worked for me!...

hide element based on width

jquery,resize,width,hide

Try this: jQuery('.wp-caption-text').each(function(i, el){ if (jQuery(this).width() <= 300) { jQuery(this).addClass('caption-none'); } }); ...

How to hide one series data info in tooltip using highcharts

highcharts,hide,legend,series

You were almost there. You needed to check the api for the shared tooltip formatter. Put your check for the series you do not want inside the for each: ... tooltip: { formatter: function () { var s = '<b>' + this.x + '</b>'; $.each(this.points, function () { if (this.series.name...

jquery text field cannot hide()

javascript,jquery,html,css,hide

Try to check the checkbox while enable or disable your elements like, function enableInput(t){ if(!$('#chk:checked').length){ $(t).closest('tr').find('input').show() $(t).closest('tr').find('span').hide() } } function disableInput(t){ if(!$('#chk:checked').length){ $(t).closest('tr').find('span').show() $(t).closest('tr').find('input').hide() } } Add an id to your checkbox chk like, <input id="chk" type="checkbox" onclick="enableEdit(this)"/> Also, your code can be shorten as, function enableInput(t){ if(!$('#chk:checked').length){...

Hide/Collapse div when only scrolling vertically

jquery,html,scroll,hide

codepen demo Description Simply detecting if the scroll is horizontal or vertical if it is horizontal ignore the scroll tasks. JS //THIS WAS MADE WITH LOTS OF VARIABLES, SO YOU CAN NAME THINGS HOWEVER YOU LIKE //IF YOU UNDERSTAND JS AND JQUERY, YOU SHOULD BE ABLE TO PICK THIS APART...

show/hide multiple div tags at once and change the size of the remaining div tag

html,css,onclick,hide,show

Your current code is too complex to achieve what you want. A simple approach would be following, (check out the fiddle http://jsfiddle.net/xdt0uaxe/1/) in HTML, <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <div class="tiles"></div> <div class="tiles"></div> <div class="tiles"></div> <div class="tiles"></div> in CSS, .tiles{ width: 200px; height: 200px; padding-top: 20%; margin: 0% 0% 2.5% 2.5%; height:...

C# unload and load form / hide and close

c#,winforms,hide,show

You need a small modification to your project's Program.cs file to change the way your app decides to terminate. You simple exit when there no more windows left. Make it look like this: static class Program { [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var start = new Form1(); start.FormClosed...

C#: How can I expose a class property to one class but not to another?

c#,properties,hide,visibility

public class BasicStudentInformation { public int StudentId { get; set; } } public class StudentInformation : BasicStudentinformation { public bool CanChangeBus { get; set; } public List<int> AvailableBuses { get; set; } } public class BusChangeRequestModel { public BasicStudentInformation StudentInfo { get; set; } ... ... } public class BusChangeResponseModel...

Swift how to hide element and his space

ios,swift,hide

Using the "hidden" property on views in Objective-C/Swift does as a matter of fact not "collapse" the space the view is taking (as opposed to "View.GONE" in Android). Instead you should use Autolayout and a Height constraint. Create a Height constraint in your Xib/Storyboard file. Giving it the wished height....

jQuery hide and show toggle keeping active only one div

jquery,toggle,hide,show,toggleclass

http://jsfiddle.net/mL79571z/13/ HTML (repeat for each option you require): <div class="env_menu_options dropMenu" id="stag_env_menu_options"> <div class="env_list" id="show_stag_options"> <span id="arrow_stag" class="glyphicon glyphicon-chevron-down arrow"></span> Heading 2 </div> <div class="stag_options detail">Content 2 <br>Content 2</div> </div> CSS: .detail { display:none; } JS: $(".dropMenu").on("click", function () { var notThisOne = $(this); $(".dropMenu").each(function() { if...

Hide class when input value equals given value

jquery,input,hide

Here's what you're looking for: JavaScript: $('#acct_tier').on("change propertychange click keyup input paste", function() { var $input = $(this); if ($input.val() === 'standard') { $(".red").hide(); } else { $(".red").show(); } }); Demo: JsFiddle...

Highcharts — Hide zero values without using 'null'

javascript,charts,highcharts,hide,zero

If you are only going to get one value per category you can check it in your PHP code and if its value is zero not add it to your series data array. Without seeing your code that generates your data I cannot be more specific. If you are using...

jQuery hide url on last section

jquery,hide,footer,fullpage.js

You should use Fullpage.js events to do that : //Get the last section index //Add 1 because index starts from 0 in jquery var lastIndex = $('.section').last().index() + 1; $('#fullpage').fullpage({ //... your options are here ... onLeave: function (index, direction) { if (index == lastIndex) { $('#footer').fadeIn(); } }, afterLoad:...

Hiding Next and Previous buttons when First or Last items are active

javascript,jquery,hide,show,show-hide

So I just added a couple of conditions to hide and show the next/prev buttons //Bottom links $(document).ready(function() { $("#prev-button").text("link 2"); $("#next-button").text("link 4"); $('#next-button').click(function() { if ($("a.nav-button.active")[0] == $(".nav-button")[$(".nav-button").length - 2]) { $("#next-button").hide() } $("#prev-button").show(); var $el = $('#left-nav li a.active').removeClass('active'), $next = $el.parent().next(); if ($next.length === 0) $next =...

Android invisible ListView item

android,listview,hide,listitem,invisible

Cause: This is a traditional bug. You are using the ViewHolder pattern that reuse the same view for several listview items and you somehow get the view and change it's attribute and that will be reflected on every listview item that reuses this view again. Solution: You should record at...

Show and hide table rows in angularjs

angularjs,table,hide,show

You can add an ng-show to your review row and judge which to show by which row your click with $index like: <tbody ....> ... <tr id="review" ng-show'isShow == $index'> <td colspan="7"> <span ng-include="'views/product/rating_main.html'"></span> </td> </tr> ... </tbody> And add a click function to change isShow number: ... <tr id="main"...

Wordpress - Hide taxonomy fields in QuickEdit

wordpress,hide,taxonomy

Try doing by javascript. (I use jquery). jQuery(document).ready(function($){'use strict'; if ($('.post-type-custom').length) { $('.taxonomy-checklist').prev().prev().hide(); // to hide title $('.taxonomy-checklist').hide(); //to hide box } }); add this code to a js file (lets say customadmin.js and assume its in the js folder that is in the theme folder) and enqueue the file...

jQuery toogle by ESC and clicking

jquery,hide,show

This should do the trick. $(".showHide").click(function (e) { e.stopPropagation(); $(".showHide").children('.showHide').toggle(); }); $(".modal-inside").click(function (e) { e.stopPropagation(); }); $(document).bind('keydown', function(e) { if (e.which == 27) { $(".showHide").children('.showHide').hide(); } }); Edit I recently came across bootstrap modal which got added in v3. It does exactly what you want. A good starting point would...

Owl Carousel 2 - hide custom nav (if 1 item)

javascript,jquery,navigation,hide,owl-carousel-2

You can first of all, use an if loop: $('.owl-carousel img').length > 1 ? true : false, This will measure the amount of imgs in the carousel, and disable the loop. We can also add an if to use the hide() function Fiddle...

jQuery check if element is visible in if statement not working

javascript,jquery,hide,show

The first line of your function is hiding all the DIVs: $(".targetDiv").hide(); So when it tests whether the target DIV is visible, it's not, because you just hid it. You should hide all the DIVs except the target: $(".targetDiv:not(#div"+$(this).attr("target")+")").hide(); jQuery(function() { jQuery('.showSingle').click(function() { var targetID = '#div' + $(this).attr('target'); jQuery('.targetDiv:not('+targetID+')').hide();...

Attempting to show a
element with the blur function

jquery,hide,show,blur

hi i have check your code the script you have write is working your fault was in the style of the div of the error box you should use ";" not "," between the each style parameter you should correct this line <div class="error" style="width: 100px, height: 100px, background-color: blue">...