Hide Show content-list with only CSS, no javascript used

I wouldn’t use checkboxes, i’d use the code you already have DEMO http://jsfiddle.net/6W7XD/1/ CSS body { display: block; } .span3:focus ~ .alert { display: none; } .span2:focus ~ .alert { display: block; } .alert{display:none;} HTML <span class=”span3″>Hide Me</span> <span class=”span2″>Show Me</span> <p class=”alert” >Some alarming information here</p> This way the text is only hidden on … Read more

Hide/Show Column in a HTML Table

One line of code using jQuery which hides the 2nd column: $(‘td:nth-child(2)’).hide(); If your table has header(th), use this: $(‘td:nth-child(2),th:nth-child(2)’).hide(); Source: Hide a Table Column with a Single line of jQuery code jsFiddle to test the code: http://jsfiddle.net/mgMem/1/ If you want to see a good use case, take a look at my blog post: Hide … Read more

Android – Programmatically Hide/Show Soft Keyboard [duplicate]

UPDATE 2 @Override protected void onResume() { super.onResume(); mUserNameEdit.requestFocus(); mUserNameEdit.postDelayed(new Runnable() { @Override public void run() { // TODO Auto-generated method stub InputMethodManager keyboard = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); keyboard.showSoftInput(mUserNameEdit, 0); } },200); //use 300 to make it run when coming back from lock screen } I tried very hard and found out a solution … whenever … Read more

tech