Thursday, 15 September 2016

Text trim using css by media query wise also possible

Text trim using css by media query wise also possible

It is very interesting thing  we can trim display (limited text characters by css classes).

if some times heading-titles will distrub to 2nd lines so in mobiles or wherever we can do with css limit display carachters

if in large resolution u can display all text..

.text-limit-inmobile{
     white-space: nowrap  !important;
  overflow: hidden  !important;
  text-overflow: ellipsis  !important;
  max-width:450px !important; display:inline-block !important; line-height:inherit;
    }

Friday, 26 August 2016

Select All - onclick single select box need select all check boxes


Select All - onclick single select box need select all check boxes

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>

<body>

<h2> This is for select all check boxes with <strong>single check box</strong></h2>
<input type="checkbox" id="ckbCheckAll" /> Select All
    <p id="checkBoxes">
        <input type="checkbox" class="checkBoxClass" id="Checkbox1" /> Radio
        <br />
        <input type="checkbox" class="checkBoxClass" id="Checkbox2" /> TV
        <br />
        <input type="checkbox" class="checkBoxClass" id="Checkbox3" /> Mobile
        <br />
        <input type="checkbox" class="checkBoxClass" id="Checkbox4" /> Tablet
        <br />
        <input type="checkbox" class="checkBoxClass" id="Checkbox5" /> Laptop
        <br />
    </p>
    
    <script>
    $(document).ready(function () {
    $("#ckbCheckAll").click(function () {
        $(".checkBoxClass").prop('checked', $(this).prop('checked'));
    });
});</script>
</body>
</html>

Monday, 15 August 2016

How reduce div background color opacity without effect to inside content or links

Hi,
I really Amazing.. I read many forums regarding how can reduce background DIV opacity without effect inside content or images... In all forums I find answer not possible, everyone saying some thing some things not working different browsers finaly top forums also saying not possible this thing but My requirement is need 100% this thing so I done experiment so successfully it is working

Just use like :   background : rgba(248, 248, 248, 0.7) !important ;
248 means it is white so white will transparent, if you need black background transparent use like
background : rgba(0, 0, 0, 0.7) !important ;

Thursday, 11 August 2016

Mobile Jquery External Links - How can add external links to mobile jquery website or application

Really I surprised everything is completed My mobile portal and I uploaded to  QA for testing but page links not working, really I surprised why it is not working everything is correct but not working...


This is mobile mobile portal and links working internal pages when I give other website links it is not working,,.... it is inteasting thing but I find solutions need to give

  rel='external' 

<a href='path'  rel='external'    >Link Text</a>

Sunday, 24 April 2016

Bootstrap DatePicker / Bootstrap Datepicker /datepicker

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Calender</title>

    <!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">

        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/css/bootstrap-datepicker.css" >
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">

   

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
   
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
   
  </head>
  <body>
   <div class="input-group date" data-provide="datepicker" id="id3">
    <input type="text" class="form-control">
    <div class="input-group-addon">
        <span class="fa fa-calendar"></span>
    </div>
</div>
 

  
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->   
   <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/js/bootstrap-datepicker.min.js"></script>       
       
         <script type="text/javascript">
            // When the document is ready
            $(document).ready(function () {
               
              $('#id3').datepicker({
                    format: "dd-M-yyyy"
                });
           
            });
        </script>
       
       
  </body>
</html>


Date Picker Download