FAQ Database Discussion Community


Show More / Show Less JavaScript not working properly

javascript,html,show
I am trying to make a div tag appear when I select a "show more" link. So far, the div appears when the page loads, which I don't want. Then when I select the "Show" link, the div disappears. I need the opposite to happen, and then make the div...

jQuery toogle by ESC and clicking

jquery,hide,show
I have this simple script $(".showHide").click(function (e) { e.stopPropagation(); jQuery(this).children('.showHide').toggle(); }); I dont know how to 1) Hide .modal if is ESC presed 2) Hide .modal if user click outside of .modal-inside https://jsfiddle.net/zkx9gt2u/1/...

If input value equals to Div's ID, then show it

javascript,if-statement,show
I'm trying to create simple dictionary web-page and I need to show certain DIV with word's translation and description which is entered in INPUT. I've created some simple JavaScript for that, but I want to use about 50 words and not planning to create 50 scripts for that :D. var...

How to iterate through items in a class in jQuery

jquery,loops,toggle,iteration,show
I am looking to create a series of text boxes, one will appear after the other. My set up is that I have all the boxes created (HTML) and hidden (jQuery). I had it working for a predefined number of boxes (code for each was written using ids etc) though...

How do I print out Integeral values in haskell without warning using show?

haskell,warnings,show,ghci,integral
When I run the following haskell code with warnings enabled module Main where main :: IO() main = interact (unlines.strout.calc.extinps.words) --calculates factorial factorial :: Integral a=> a->a factorial n = product [1..n] --Extracts numbers from the input extinps ::(Read b)=>[String]->[b] extinps x=map read x --Calculates the factorial calc :: (Integral...

Show and hide elements inside SVGs

javascript,function,svg,hide,show
I'm trying to set up an interactive map where you can click on circles (for cities) to make some text appear. When you click on another circle another text appears. Here is what I made so far: <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...

Hide show div, starting in Show mode

javascript,hide,show
I'm using a show/hide javascript code. You can find an example here http://ledonnedelre.com/test.htm Basically if you click the ? on the top left, an help box appears. And after you can close it clicking again the button. What i need is to have the help box already opened when you...

Regular Expression, 4th parameter

regex,parameters,notepad++,show,comma
I have some code, there is 7 parameters in each line. Each line is in parentheses and is ended with a semicolon. I need to take 2000 away from the 4th parameter of each line. Basically all I need to do is take off the first digit (2) off the...

CKEditor will not show echo function

php,post,ckeditor,textarea,show
I implemented Ckeditor into my blog , and I have an "Edit Page". In that page I want to get the text that I wrote so I can obviously edit it, problem is it doesn't show up , like the rest of the text , here's my code after the...

text show and hide with button php/js

php,jquery,text,hide,show
How can I apply the multiple texts? With a text it works: <dl> <dt> <img class="empfehlung-bild" style="max-width: 300px; height: auto; float: left; margin-right: 15px; margin-bottom: 15px;" src="<?php echo $bild; ?>" /> <h1><?php echo $title; ?></h1> <p> <?php echo $text; ?> </p><br/> <button id="<?php echo $i; ?>" style="float:right;">Details</button><br/><br/> </dt> <dd style="float:left;">...

Hide div based on dropdown selection

jquery,hide,show
I have the following form: <h5>Region</h5> <select class="form-control" name="region" id="region" > <option value="">Select a Region</option> <option value="US">US</option> <option value="UK">UK</option> <option value="XS">XS (Sales Team)</option> <option value="XT">XT (Editorial Test)</option> </select> </div> <div class="col-md-3 portfolio-item"> <h5>Duration</h5> <select class="form-control" name="duration"...

Opening and closing forms whilst keeping one permanently open

c#,forms,show,showdialog,close
So I'm wanting to create a program where the basis of the forms will be like so. 1 main form with many different buttons linking to different forms. The main form will never close and will not be able to be, minimized, maximized or resized. All this is fine so...

Instance Show for specific data

string,haskell,instance,show
I have defined the following type: data Taula = Taula String [[String]] And I created the following instance: instance Show Taula where show Taula [( n , i , c )] = show Taula [( n , i , c )]++ "\n" show ( l : ls ) = show...

git log doesn't show commit, but git log shows commit that edited the file

git,logging,show,commit
I discovered this odd issue while looking for a lost change. I typed in: git log httpd.conf I am getting a bunch of commit hashes as expected, but not the one I did. When I type in: git log I see the commit I made. When I run: git show...

TObject.Show() not reachable on C++ Builder

c++,show,c++builder
I'm currently starting to learn how to use C++ Builder. However, I'm stuck on doing something basic, which is to open a window when I click on an element of the menu. I'm ok with the event management, but when I try to display it with the method Show(), it's...

Instance of Show for Lambda

haskell,lambda,instance,show,typeclass
So, I have already defined the lambda data type as such: data LExpr = Variable String -- variable | Apply LExpr LExpr -- function application | Lambda String LExpr -- Lambda abstraction deriving (Eq, Show) Now I want to implement an instance of Show myself. I have already the function...

What should “git reflog show ” show?

git,show,ref,reflog
I have two branches, master and b1. When I'm on b1, 'git reflog show' displays all the changes to b1. However, after I switch to master and run 'git reflog show b1', it displays something different. The manpage for 'git reflog' does not explain how the arg, <ref>, affects the...

Attempting to show a
element with the blur function

jquery,hide,show,blur
I am trying to get the <div class="error"> element to show when i remove the cursor from the input text box, but it's not working with the jquery blur function. Any help will be appreciated. <h1>BMI Calculator</h1> <p>This is a BMI calculator.</p> <div class="error" style="width: 100px, height: 100px, background-color: blue"></div>...

jQuery - Show/hide has problems with centered items

jquery,hide,center,show
All I want is, as the code says, to loop a show-hide animation. Somehow it seems to automatically move to the left and back to the center. What's happening and how do I keep it fixed to the center? <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> function running(){ $("#hider").show("slow").hide("slow", running); } $(document).ready(function(){...

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

javascript,html,css,hide,show
Lately I've been trying to watch/study javascript and got interested in this certain program since I know I'll be able to use it a lot in the future. I've seen a tutorial on youtube on how to "hide/show" a div so I tweaked it and made it "show/hide" div's and...

How to show a new form

c#,show,show-hide
I am having trouble with me .show() function, it will hide the previous page but when it goes to show the new page, it will pop up for a second and then stop debugging to program instantly. here is the code for the first page. using System; using System.Collections.Generic; using...

*Show* view always shows the first pin (item) in the database

ruby-on-rails,database,heroku,show
I'm working on a pinterest-like app, and I've encountered a problem recently. When as a logged in user I try to access a pin through "show" it gives me the correct id number in the url for e.g. http://localhost:3000/pins/7 but the description comes from the first item in the database....

If Radio button checked show div

javascript,hide,show,radio
I have HTML CODE below: $('input[type="radio"]').click(function(){ if($(this).attr("value")=="ABC"){ $(".Box").hide('slow'); } if($(this).attr("value")=="PQR"){ $(".Box").show('slow'); } }); <table> <tr> <td align="left" height="45"> <input type="radio" class="radioBtn" name="Radio" id="Radio" value="ABC" required> ABC <input class="radioBtn" type="radio" name="Radio" id="Radio" value="PQR" required> PQR <div class="Box" style="display:none">Text</div> </td> </tr> </table>...

how to list data types from a document in couchdb

list,curl,types,couchdb,show
Is there any opprtunity to list all data types of a document in couchdb like string, object,integer ? I'm using only curl with a Windows machine....

Class function click show/hide

jquery,hide,show
i was starting with JQuery, i was trying to make a simple function to define if click, hide one div and show another div. my code was: jQuery(document).ready(function() { jQuery('#dots').on('click', function() { jQuery('#truncated_full_value').show(); }); jQuery('#dots').on('click', function() { jQuery('#text-before-truncate').hide(); }); }); And the html was: <dd class="truncated"> <div class="text-before-truncate"> <a href="#"...

Show checkbox array values

php,arrays,checkbox,show
i'm trying to loop inside my checkbox array and show the value of each element, but its returning 0, and the real value are emails. ([email protected]) and ([email protected]) These are my codes: <form method="POST" action="testeEmail.php"> <table id="tableEmail" class="table table-striped table-bordered"> <tr> <td>Email</td> <td width="5%">Enviar?</td> <td class="centro">Já recebido</td> <td width="10%"> <button...

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

javascript,html,hide,show,tr
I have html page with many rows (is about 40000) <html><body> <table id="t1"> <tr id="r1" name="1"><td>row 1</td></tr> <tr id="r2" name="1"><td>row 2</td></tr> .... <tr id="r50000" name="3"><td>row 30000</td></tr> </table></body></html> I need a fast way to hide/show set of rows (10 000 or 20 000) with the specified name. Platform requirements: IE8-9 and...

How can I use MySQL statement 'show index' with PDO?

php,mysql,indexing,pdo,show
I am trying to use PDO and prepared statements to get the primary key of a table. From other questions I saw that this is possible when executing something like this: show index from TABLENAME where Key_name = 'PRIMARY' The problem is that I can not use this from inside...

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

javascript,jquery,hide,show,show-hide
I am having an issue hiding previous/next buttons for first/last items. I'm trying to hide the previous button on the first and hide the next button on the last. The current item has the class "active". HTML: <div class="container content"> <div class="row"> <div class="col-xs-3 lefty"> <div id="left-nav"> <ul> <li><a class="nav-button"...

Search for specific text and show text with img

jquery,html,search,parent,show
I am making a roster, each athlete has their own html: <div class="athlete"><a href="athlete.html"> <div class="name"><p>Athlete Name</p> </div> <div class="image"><img src="_images/athletes/athlete_pic.jpg"> </div></a> </div> where the <a> tag points to a specific athlete-profile html file. The <p> (showing their name) and <img> (showing an image of them) are unique to each...

jQuery: need help hiding previously viewed element(s)

jquery,hide,show,show-hide,clear
Please, be kind, I am just learning how to code... I have built out a simple photo album page using 'hide' and 'show' to navigate between the different albums. However, I am running into an issue with not being able to 'clear' the previously viewed photos from the previous album....

Show autocomplete suggestions on another event

javascript,jquery,events,autocomplete,show
I have two inputs - #postal and #name. #name input has a jQuery autocomplete function enabled. Suggestions for autocomplete are shown only when I start typing something into #name input. I need to show suggestions of #name input even if I type something into #postal input too. I was trying:...

Show div with the same data-attribute as select option attribute

jquery,html,show
I would like to show divs that are set to display none in css depending on multiple if statements. For this I want to use data-attributes and get that data value to match the data value of the hidden div. the options: <select class="selectOptions" id="selectOptions1"> <option data-name="man"> man1 </option> <option...

Django Show Image in HTML

html,django,image,hyperlink,show
I am new to Django and want to show an image in HTML which is identified by an item's link being clicked in a table. The ID is given when a link is clicked. HTML: <div id="link-product"> <a id= "product-clicked" href="/prod_details/{item.id }}"> {{ item.product }} </a> </div> VIEWS: def list_details(request,info_id):...

Take action after the main form is shown in a Qt desktop application

c++,forms,qt,show
In Delphi I often made an OnAfterShow event for the main form. The standard OnShow() for the form would have little but a postmessage() which would cause the OnafterShow method to be executed. I did this so that sometimes lengthy data loading or initializations would not stop the normal loading...

jQuery show function distorting style of page

javascript,jquery,html,css,show
So I have an extra div which I show if the appropriate select option is selected. In Firefox works perfectly, but in Chrome or Safari when the extra div is shown, the footer stays where it was before. It does not goes back to the bottom. Here is an example,...

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

html,css,onclick,hide,show
I have four 200px*200px div tags and when I click one I would like to change the one I clicked to 800px*800px and hide the other three div tags. I would like to be able to do this to each of them, so say when I click one it will...

Show text if date is today

php,date,calendar,show
I need to show (today) text if date is today. How do I do that! I tried everything but cant find the right anwser that's why Im asking here. Here is the piece of codeI have right now. $mod_list.= '<ul class="upcoming-events"><li> <div class="date"> <span><span class="day">'.date($dateformat,$datetime_start).'</span> <span><span class="month">'.date($datemonth,$datetime_start).'</span> <span><span class="year">'.date($dateyear,$datetime_start).'</span> </div>';...

using mouseover to show search input type

jquery,toggle,show,mouseover
I'm trying to achieve a jquery function, by mouseoever a submit button, I want my search input type to appear, the same kind of effect as a slideToggle. I don't want to use width toggle because I don't want my search input to hide when hovering again my submit button....

Show and hide table rows in angularjs

angularjs,table,hide,show
First, I would like to show all id named "main rows and hide all id named "review" rows. Second, when I click on one "main row, I would like to show one "review" row under this "main row. Third step, And then when I click again on another "main row,...

jQuery hide and show toggle keeping active only one div

jquery,toggle,hide,show,toggleclass
I am a starter with JQuery, and Javascript, and I would like to know how should I edit the following code so that when I click on a heading, the content under the other headings, will be hidden? I also want the arrows to function properly. Basically, I want to...

POST data is not submitted a situation where I have two alternating forms chosen with show() and hide()

php,jquery,html,onclick,show
I have 2 forms in a program whereby the second form when showed and then filled up but the keyed-in information never get captured by the POST variables. Upon click Submit on 2nd form it always go back to 1st form without executing the process A & B in the...

Php style show function

php,text,show
Hi guys I want that on click of the button "show" the following inputs became visible, can someone help me? <input id="show"type="submit" value="change" > <input id="oldpass"TYPE="text"value="" style="display: none"> <input id="newpass"TYPE="text"value="" style="display: none"> <input id="cambia"TYPE="submit"value="" style="display: none"> ...

jQuery to hide dummy button and show submit button

jquery,hide,show
I have this js (jQuery): <script type="text/javascript"> if ($('input.checkbox_check').is(':checked')) { $('#hide-temp-submit').hide(); $('#show-submit').show(); } </script> And this HTML: <input type="checkbox" class="checkbox_check" name="" value=""> <button class="login_button" id='hide-temp-submit' style="background-color:#101010;color:grey;">Please Agree to Terms</button> <button class="login_button" id='create_button show-submit' style="display:none">Create Account</button> Any help...

ObjC - presentViewController breaks

objective-c,xcode,show,viewcontroller
I am trying to programmatically show another View Controller. I wrote some code that I learned from examples, it gives no errors. But it Breaks and shows this in green: return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); thread 1 : signal SIGABRT I used this code: UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main"...

Scale centered image with jquery

jquery,show
I have a centered image and I want to scale it with jquery. The problem is that it scales first and positioned on a second step. .outer { width:500px; height:500px; background: #f5f5f5; text-align: center; } #inner { display: none; } http://jsfiddle.net/omudeaxd/...

jQuery tooltip random appear

jquery,random,tooltip,delay,show
I am developing this "logo colors". I need the tooltip to appear in a DIV where id is #show after I click (this is OK). But after hover the buttons the tooltip is appearing anywhere it wants. Visit my problem here: http://web-stranky.org/pro_dementa/ $(document).ready(function () { $( document ).tooltip( { content:...

jQuery check if element is visible in if statement not working

javascript,jquery,hide,show
I need a function that displays only one of the selected divs at a time. I have it pretty much working except the if statement. I want the button to hide the div if it is already showing. But it is not working and I cant figure out why. Thank...

how to hide/show div with data filtering

html,hide,show
<script> function changeContent(str) { if(str == 'recent' || str == 'old' && !($(".main_content").is(':visible'))) { $(".main_content").show(); } else if( str == 'newComment') { $(".main_content").hide(); } } </script> The list options with onclick function to "changeContent()" with id as parameter.. <main class="cd-main-content"> <div class="cd-tab-filter-wrapper"> <div class="cd-tab-filter"> <ul class="cd-filters"> <li class="placeholder"> <a data-type="all"...

jQuery .show combined with CSS transition

jquery,css3,css-transitions,show
Coming from Animate element transform rotate (Answer of Dyin) I still can't get it to work properly. I want to fade in a div with jQuery .show(). This div is containing an img. Now I want that img to be zoomed in slowley with css transition and scale (not jQuery,...

How to add link_to under Div on ActiveAdmin's show page | Rails 4

ruby-on-rails,ruby,activeadmin,show
I have implemented one panel of Active Admin's show page. In this panel I am showing list of data by loop. Here is what I did: show do default_main_content panel "Best #{trip_type.camelize} (Live)" do live_datas1.each do |live| div do live["outbound_date"].strftime('%A')+ ", " + live["outbound_date"].strftime('%Y-%m-%d') + " To " + live["inbound_date"].strftime('%A')...

Cisco Show command filtering

tcl,command-line-interface,show,cisco,cisco-ios
I am writing a script to capture certain lines of config from a cisco device. Unfortunately the buffer keeps getting filled up. So I was wondering if cisco devices can have 2 include statements. For example: show start | include vpn && protocol The 2 lines that I need info...

My image gallery isn't working (jQuery)

jquery,html,hide,show
I'm tryimg to make a gallery using jQuery, the keypress() function. The first keypress works (I can go to next pic with Enter), but the second one does nothing. It should jump back to the first pic, sort of resetting the gallery, using Esc. I might be making some big...