Friday, December 19, 2014

 how to hide and show multiple div using jquery  
 -----------------------------------------------  
 simple fallow my 2 steps.  
 step 1 Scriptquery  
 ------------------:  
         <div class="inner-spacer inner-content" role="content" style="height: 378px;">  
           <form class="orb-form" id="myform">  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Stock Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv1">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             AllowNegativeStock  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="AllowNegativeStock" style="width: 200px;" id="ddlAllowNegativeStock">  
                     <option value="N">NO</option>  
                     <option value="Y">YES</option>  
                   </select>  
                 </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrency  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="DefCurrency" style=" width:200px;" id="ddlDefCurrency">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrencyDec  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="input">  
                   <input id="txtDefCurrencyDec" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,1)"  
                       type="button" id="btnhide1" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Item Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv2">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Item PurRate  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemPurRate" id="ddlItemPurRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ItemSalesRate  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemSalesRate" id="ddlItemSalesRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Vsf Item Code Cols  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtVsfItemCodeCols" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,2)"  
                       type="button" id="btnhide2" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Email Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv3">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             From MailID  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtFromMailID" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             SMTP Password  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtsmptpPwd" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Password Lap Days  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtPwdLapDays" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,3)"  
                       type="button" id="btnhide3" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Other Details</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv4">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Auto Saving in seconds  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtAutoSaving" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ValMethod  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
               <select name="ItemSalesRate" id="ddlValMethod" style="width: 200px;">  
               <option value="N">--Select--</option>  
                <option value="Std. Rate">Std. Rate</option>  
                <option value="Weighted Avg.">Weighted Avg.</option>  
                <option value="FIFO">FIFO</option>  
               </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td style="vertical-align: top;">  
                             Marquee Message  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <textarea id="txtMarqueeMsg" placeholder="Marquee Message" name="Marquee Message" rows="2" style="width:250px; resize: none;"></textarea>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,4)"  
                       type="button" id="btnhide4" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           </form>  
         </div>  
 step 2 Scriptquery  
 ------------------:  
 function divGlobalHideShow(type, btnid) {  
   if (type == 1) {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(0,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; Show');  
     $("#btnfirsthideDiv" + btnid).hide();  
   } else {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(1,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; hide');  
     $("#btnfirsthideDiv" + btnid).show();  
   }  
 }  
 but you have write in the script tag if you are writing jquery in html or other wise you can write in your own js file  
 if you have any querys please visit Scriptquery blogger to http://scriptquery.blogspot.in/  
 here lot of examples are there which is use full in real time applications. please share to you friends  

jquery

how to show and hide for multiple divs using Html and jquery

Posted by Unknown  |  No comments

 how to hide and show multiple div using jquery  
 -----------------------------------------------  
 simple fallow my 2 steps.  
 step 1 Scriptquery  
 ------------------:  
         <div class="inner-spacer inner-content" role="content" style="height: 378px;">  
           <form class="orb-form" id="myform">  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Stock Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv1">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             AllowNegativeStock  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="AllowNegativeStock" style="width: 200px;" id="ddlAllowNegativeStock">  
                     <option value="N">NO</option>  
                     <option value="Y">YES</option>  
                   </select>  
                 </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrency  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="DefCurrency" style=" width:200px;" id="ddlDefCurrency">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrencyDec  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="input">  
                   <input id="txtDefCurrencyDec" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,1)"  
                       type="button" id="btnhide1" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Item Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv2">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Item PurRate  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemPurRate" id="ddlItemPurRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ItemSalesRate  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemSalesRate" id="ddlItemSalesRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Vsf Item Code Cols  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtVsfItemCodeCols" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,2)"  
                       type="button" id="btnhide2" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Email Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv3">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             From MailID  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtFromMailID" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             SMTP Password  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtsmptpPwd" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Password Lap Days  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtPwdLapDays" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,3)"  
                       type="button" id="btnhide3" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Other Details</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv4">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Auto Saving in seconds  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtAutoSaving" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ValMethod  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
               <select name="ItemSalesRate" id="ddlValMethod" style="width: 200px;">  
               <option value="N">--Select--</option>  
                <option value="Std. Rate">Std. Rate</option>  
                <option value="Weighted Avg.">Weighted Avg.</option>  
                <option value="FIFO">FIFO</option>  
               </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td style="vertical-align: top;">  
                             Marquee Message  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <textarea id="txtMarqueeMsg" placeholder="Marquee Message" name="Marquee Message" rows="2" style="width:250px; resize: none;"></textarea>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,4)"  
                       type="button" id="btnhide4" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           </form>  
         </div>  
 step 2 Scriptquery  
 ------------------:  
 function divGlobalHideShow(type, btnid) {  
   if (type == 1) {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(0,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; Show');  
     $("#btnfirsthideDiv" + btnid).hide();  
   } else {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(1,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; hide');  
     $("#btnfirsthideDiv" + btnid).show();  
   }  
 }  
 but you have write in the script tag if you are writing jquery in html or other wise you can write in your own js file  
 if you have any querys please visit Scriptquery blogger to http://scriptquery.blogspot.in/  
 here lot of examples are there which is use full in real time applications. please share to you friends  

9:48 PM Share:
 how to hide and show multiple div using jquery  
 -----------------------------------------------  
 simple fallow my 2 steps.  
 step 1 Scriptquery  
 ------------------:  
         <div class="inner-spacer inner-content" role="content" style="height: 378px;">  
           <form class="orb-form" id="myform">  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Stock Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv1">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             AllowNegativeStock  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="AllowNegativeStock" style="width: 200px;" id="ddlAllowNegativeStock">  
                     <option value="N">NO</option>  
                     <option value="Y">YES</option>  
                   </select>  
                 </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrency  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="DefCurrency" style=" width:200px;" id="ddlDefCurrency">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrencyDec  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="input">  
                   <input id="txtDefCurrencyDec" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,1)"  
                       type="button" id="btnhide1" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Item Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv2">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Item PurRate  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemPurRate" id="ddlItemPurRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ItemSalesRate  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemSalesRate" id="ddlItemSalesRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Vsf Item Code Cols  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtVsfItemCodeCols" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,2)"  
                       type="button" id="btnhide2" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Email Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv3">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             From MailID  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtFromMailID" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             SMTP Password  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtsmptpPwd" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Password Lap Days  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtPwdLapDays" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,3)"  
                       type="button" id="btnhide3" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Other Details</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv4">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Auto Saving in seconds  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtAutoSaving" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ValMethod  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
               <select name="ItemSalesRate" id="ddlValMethod" style="width: 200px;">  
               <option value="N">--Select--</option>  
                <option value="Std. Rate">Std. Rate</option>  
                <option value="Weighted Avg.">Weighted Avg.</option>  
                <option value="FIFO">FIFO</option>  
               </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td style="vertical-align: top;">  
                             Marquee Message  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <textarea id="txtMarqueeMsg" placeholder="Marquee Message" name="Marquee Message" rows="2" style="width:250px; resize: none;"></textarea>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,4)"  
                       type="button" id="btnhide4" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           </form>  
         </div>  
 step 2 Scriptquery  
 ------------------:  
 function divGlobalHideShow(type, btnid) {  
   if (type == 1) {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(0,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; Show');  
     $("#btnfirsthideDiv" + btnid).hide();  
   } else {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(1,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; hide');  
     $("#btnfirsthideDiv" + btnid).show();  
   }  
 }  
 but you have write in the script tag if you are writing jquery in html or other wise you can write in your own js file  
 if you have any querys please visit Scriptquery blogger to http://scriptquery.blogspot.in/  
 here lot of examples are there which is use full in real time applications. please share to you friends  

jquery

learning jquery

Posted by Unknown  |  No comments

 how to hide and show multiple div using jquery  
 -----------------------------------------------  
 simple fallow my 2 steps.  
 step 1 Scriptquery  
 ------------------:  
         <div class="inner-spacer inner-content" role="content" style="height: 378px;">  
           <form class="orb-form" id="myform">  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Stock Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv1">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             AllowNegativeStock  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="AllowNegativeStock" style="width: 200px;" id="ddlAllowNegativeStock">  
                     <option value="N">NO</option>  
                     <option value="Y">YES</option>  
                   </select>  
                 </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrency  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="DefCurrency" style=" width:200px;" id="ddlDefCurrency">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrencyDec  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="input">  
                   <input id="txtDefCurrencyDec" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,1)"  
                       type="button" id="btnhide1" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Item Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv2">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Item PurRate  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemPurRate" id="ddlItemPurRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ItemSalesRate  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemSalesRate" id="ddlItemSalesRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Vsf Item Code Cols  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtVsfItemCodeCols" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,2)"  
                       type="button" id="btnhide2" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Email Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv3">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             From MailID  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtFromMailID" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             SMTP Password  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtsmptpPwd" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Password Lap Days  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtPwdLapDays" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,3)"  
                       type="button" id="btnhide3" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Other Details</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv4">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Auto Saving in seconds  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtAutoSaving" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ValMethod  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
               <select name="ItemSalesRate" id="ddlValMethod" style="width: 200px;">  
               <option value="N">--Select--</option>  
                <option value="Std. Rate">Std. Rate</option>  
                <option value="Weighted Avg.">Weighted Avg.</option>  
                <option value="FIFO">FIFO</option>  
               </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td style="vertical-align: top;">  
                             Marquee Message  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <textarea id="txtMarqueeMsg" placeholder="Marquee Message" name="Marquee Message" rows="2" style="width:250px; resize: none;"></textarea>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,4)"  
                       type="button" id="btnhide4" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           </form>  
         </div>  
 step 2 Scriptquery  
 ------------------:  
 function divGlobalHideShow(type, btnid) {  
   if (type == 1) {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(0,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; Show');  
     $("#btnfirsthideDiv" + btnid).hide();  
   } else {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(1,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; hide');  
     $("#btnfirsthideDiv" + btnid).show();  
   }  
 }  
 but you have write in the script tag if you are writing jquery in html or other wise you can write in your own js file  
 if you have any querys please visit Scriptquery blogger to http://scriptquery.blogspot.in/  
 here lot of examples are there which is use full in real time applications. please share to you friends  

9:46 PM Share:
 how to hide and show multiple div using jquery  
 -----------------------------------------------  
 simple fallow my 2 steps.  
 step 1 Scriptquery  
 ------------------:  
         <div class="inner-spacer inner-content" role="content" style="height: 378px;">  
           <form class="orb-form" id="myform">  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Stock Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv1">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             AllowNegativeStock  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="AllowNegativeStock" style="width: 200px;" id="ddlAllowNegativeStock">  
                     <option value="N">NO</option>  
                     <option value="Y">YES</option>  
                   </select>  
                 </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrency  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="DefCurrency" style=" width:200px;" id="ddlDefCurrency">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrencyDec  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="input">  
                   <input id="txtDefCurrencyDec" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,1)"  
                       type="button" id="btnhide1" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Item Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv2">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Item PurRate  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemPurRate" id="ddlItemPurRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ItemSalesRate  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemSalesRate" id="ddlItemSalesRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Vsf Item Code Cols  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtVsfItemCodeCols" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,2)"  
                       type="button" id="btnhide2" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Email Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv3">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             From MailID  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtFromMailID" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             SMTP Password  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtsmptpPwd" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Password Lap Days  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtPwdLapDays" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,3)"  
                       type="button" id="btnhide3" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Other Details</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv4">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Auto Saving in seconds  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtAutoSaving" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ValMethod  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
               <select name="ItemSalesRate" id="ddlValMethod" style="width: 200px;">  
               <option value="N">--Select--</option>  
                <option value="Std. Rate">Std. Rate</option>  
                <option value="Weighted Avg.">Weighted Avg.</option>  
                <option value="FIFO">FIFO</option>  
               </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td style="vertical-align: top;">  
                             Marquee Message  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <textarea id="txtMarqueeMsg" placeholder="Marquee Message" name="Marquee Message" rows="2" style="width:250px; resize: none;"></textarea>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,4)"  
                       type="button" id="btnhide4" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           </form>  
         </div>  
 step 2 Scriptquery  
 ------------------:  
 function divGlobalHideShow(type, btnid) {  
   if (type == 1) {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(0,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; Show');  
     $("#btnfirsthideDiv" + btnid).hide();  
   } else {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(1,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; hide');  
     $("#btnfirsthideDiv" + btnid).show();  
   }  
 }  
 but you have write in the script tag if you are writing jquery in html or other wise you can write in your own js file  
 if you have any querys please visit Scriptquery blogger to http://scriptquery.blogspot.in/  
 here lot of examples are there which is use full in real time applications. please share to you friends  

jquery

jquery classes

Posted by Unknown  |  No comments

 how to hide and show multiple div using jquery  
 -----------------------------------------------  
 simple fallow my 2 steps.  
 step 1 Scriptquery  
 ------------------:  
         <div class="inner-spacer inner-content" role="content" style="height: 378px;">  
           <form class="orb-form" id="myform">  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Stock Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv1">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             AllowNegativeStock  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="AllowNegativeStock" style="width: 200px;" id="ddlAllowNegativeStock">  
                     <option value="N">NO</option>  
                     <option value="Y">YES</option>  
                   </select>  
                 </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrency  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="DefCurrency" style=" width:200px;" id="ddlDefCurrency">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrencyDec  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="input">  
                   <input id="txtDefCurrencyDec" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,1)"  
                       type="button" id="btnhide1" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Item Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv2">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Item PurRate  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemPurRate" id="ddlItemPurRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ItemSalesRate  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemSalesRate" id="ddlItemSalesRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Vsf Item Code Cols  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtVsfItemCodeCols" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,2)"  
                       type="button" id="btnhide2" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Email Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv3">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             From MailID  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtFromMailID" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             SMTP Password  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtsmptpPwd" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Password Lap Days  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtPwdLapDays" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,3)"  
                       type="button" id="btnhide3" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Other Details</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv4">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Auto Saving in seconds  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtAutoSaving" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ValMethod  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
               <select name="ItemSalesRate" id="ddlValMethod" style="width: 200px;">  
               <option value="N">--Select--</option>  
                <option value="Std. Rate">Std. Rate</option>  
                <option value="Weighted Avg.">Weighted Avg.</option>  
                <option value="FIFO">FIFO</option>  
               </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td style="vertical-align: top;">  
                             Marquee Message  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <textarea id="txtMarqueeMsg" placeholder="Marquee Message" name="Marquee Message" rows="2" style="width:250px; resize: none;"></textarea>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,4)"  
                       type="button" id="btnhide4" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           </form>  
         </div>  
 step 2 Scriptquery  
 ------------------:  
 function divGlobalHideShow(type, btnid) {  
   if (type == 1) {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(0,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; Show');  
     $("#btnfirsthideDiv" + btnid).hide();  
   } else {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(1,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; hide');  
     $("#btnfirsthideDiv" + btnid).show();  
   }  
 }  
 but you have write in the script tag if you are writing jquery in html or other wise you can write in your own js file  
 if you have any querys please visit Scriptquery blogger to http://scriptquery.blogspot.in/  
 here lot of examples are there which is use full in real time applications. please share to you friends  

9:45 PM Share:
 how to hide and show multiple div using jquery  
 -----------------------------------------------  
 simple fallow my 2 steps.  
 step 1 Scriptquery  
 ------------------:  
         <div class="inner-spacer inner-content" role="content" style="height: 378px;">  
           <form class="orb-form" id="myform">  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Stock Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv1">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             AllowNegativeStock  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="AllowNegativeStock" style="width: 200px;" id="ddlAllowNegativeStock">  
                     <option value="N">NO</option>  
                     <option value="Y">YES</option>  
                   </select>  
                 </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrency  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="DefCurrency" style=" width:200px;" id="ddlDefCurrency">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrencyDec  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="input">  
                   <input id="txtDefCurrencyDec" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,1)"  
                       type="button" id="btnhide1" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Item Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv2">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Item PurRate  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemPurRate" id="ddlItemPurRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ItemSalesRate  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemSalesRate" id="ddlItemSalesRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Vsf Item Code Cols  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtVsfItemCodeCols" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,2)"  
                       type="button" id="btnhide2" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Email Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv3">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             From MailID  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtFromMailID" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             SMTP Password  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtsmptpPwd" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Password Lap Days  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtPwdLapDays" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,3)"  
                       type="button" id="btnhide3" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Other Details</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv4">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Auto Saving in seconds  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtAutoSaving" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ValMethod  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
               <select name="ItemSalesRate" id="ddlValMethod" style="width: 200px;">  
               <option value="N">--Select--</option>  
                <option value="Std. Rate">Std. Rate</option>  
                <option value="Weighted Avg.">Weighted Avg.</option>  
                <option value="FIFO">FIFO</option>  
               </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td style="vertical-align: top;">  
                             Marquee Message  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <textarea id="txtMarqueeMsg" placeholder="Marquee Message" name="Marquee Message" rows="2" style="width:250px; resize: none;"></textarea>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,4)"  
                       type="button" id="btnhide4" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           </form>  
         </div>  
 step 2 Scriptquery  
 ------------------:  
 function divGlobalHideShow(type, btnid) {  
   if (type == 1) {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(0,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; Show');  
     $("#btnfirsthideDiv" + btnid).hide();  
   } else {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(1,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; hide');  
     $("#btnfirsthideDiv" + btnid).show();  
   }  
 }  
 but you have write in the script tag if you are writing jquery in html or other wise you can write in your own js file  
 if you have any querys please visit Scriptquery blogger to http://scriptquery.blogspot.in/  
 here lot of examples are there which is use full in real time applications. please share to you friends  

jquery

show hide div using jquery

Posted by Unknown  |  No comments

 how to hide and show multiple div using jquery  
 -----------------------------------------------  
 simple fallow my 2 steps.  
 step 1 Scriptquery  
 ------------------:  
         <div class="inner-spacer inner-content" role="content" style="height: 378px;">  
           <form class="orb-form" id="myform">  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Stock Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv1">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             AllowNegativeStock  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="AllowNegativeStock" style="width: 200px;" id="ddlAllowNegativeStock">  
                     <option value="N">NO</option>  
                     <option value="Y">YES</option>  
                   </select>  
                 </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrency  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="DefCurrency" style=" width:200px;" id="ddlDefCurrency">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrencyDec  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="input">  
                   <input id="txtDefCurrencyDec" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,1)"  
                       type="button" id="btnhide1" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Item Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv2">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Item PurRate  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemPurRate" id="ddlItemPurRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ItemSalesRate  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemSalesRate" id="ddlItemSalesRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Vsf Item Code Cols  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtVsfItemCodeCols" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,2)"  
                       type="button" id="btnhide2" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Email Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv3">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             From MailID  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtFromMailID" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             SMTP Password  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtsmptpPwd" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Password Lap Days  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtPwdLapDays" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,3)"  
                       type="button" id="btnhide3" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Other Details</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv4">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Auto Saving in seconds  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtAutoSaving" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ValMethod  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
               <select name="ItemSalesRate" id="ddlValMethod" style="width: 200px;">  
               <option value="N">--Select--</option>  
                <option value="Std. Rate">Std. Rate</option>  
                <option value="Weighted Avg.">Weighted Avg.</option>  
                <option value="FIFO">FIFO</option>  
               </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td style="vertical-align: top;">  
                             Marquee Message  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <textarea id="txtMarqueeMsg" placeholder="Marquee Message" name="Marquee Message" rows="2" style="width:250px; resize: none;"></textarea>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,4)"  
                       type="button" id="btnhide4" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           </form>  
         </div>  
 step 2 Scriptquery  
 ------------------:  
 function divGlobalHideShow(type, btnid) {  
   if (type == 1) {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(0,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; Show');  
     $("#btnfirsthideDiv" + btnid).hide();  
   } else {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(1,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; hide');  
     $("#btnfirsthideDiv" + btnid).show();  
   }  
 }  
 but you have write in the script tag if you are writing jquery in html or other wise you can write in your own js file  
 if you have any querys please visit Scriptquery blogger to http://scriptquery.blogspot.in/  
 here lot of examples are there which is use full in real time applications. please share to you friends  

9:44 PM Share:
 how to hide and show multiple div using jquery  
 -----------------------------------------------  
 simple fallow my 2 steps.  
 step 1 Scriptquery  
 ------------------:  
         <div class="inner-spacer inner-content" role="content" style="height: 378px;">  
           <form class="orb-form" id="myform">  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Stock Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv1">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             AllowNegativeStock  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="AllowNegativeStock" style="width: 200px;" id="ddlAllowNegativeStock">  
                     <option value="N">NO</option>  
                     <option value="Y">YES</option>  
                   </select>  
                 </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrency  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="DefCurrency" style=" width:200px;" id="ddlDefCurrency">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrencyDec  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="input">  
                   <input id="txtDefCurrencyDec" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,1)"  
                       type="button" id="btnhide1" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Item Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv2">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Item PurRate  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemPurRate" id="ddlItemPurRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ItemSalesRate  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemSalesRate" id="ddlItemSalesRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Vsf Item Code Cols  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtVsfItemCodeCols" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,2)"  
                       type="button" id="btnhide2" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Email Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv3">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             From MailID  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtFromMailID" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             SMTP Password  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtsmptpPwd" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Password Lap Days  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtPwdLapDays" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,3)"  
                       type="button" id="btnhide3" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Other Details</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv4">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Auto Saving in seconds  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtAutoSaving" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ValMethod  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
               <select name="ItemSalesRate" id="ddlValMethod" style="width: 200px;">  
               <option value="N">--Select--</option>  
                <option value="Std. Rate">Std. Rate</option>  
                <option value="Weighted Avg.">Weighted Avg.</option>  
                <option value="FIFO">FIFO</option>  
               </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td style="vertical-align: top;">  
                             Marquee Message  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <textarea id="txtMarqueeMsg" placeholder="Marquee Message" name="Marquee Message" rows="2" style="width:250px; resize: none;"></textarea>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,4)"  
                       type="button" id="btnhide4" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           </form>  
         </div>  
 step 2 Scriptquery  
 ------------------:  
 function divGlobalHideShow(type, btnid) {  
   if (type == 1) {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(0,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; Show');  
     $("#btnfirsthideDiv" + btnid).hide();  
   } else {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(1,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; hide');  
     $("#btnfirsthideDiv" + btnid).show();  
   }  
 }  
 but you have write in the script tag if you are writing jquery in html or other wise you can write in your own js file  
 if you have any querys please visit Scriptquery blogger to http://scriptquery.blogspot.in/  
 here lot of examples are there which is use full in real time applications. please share to you friends  

jquery

jquery show hide multiple divs

Posted by Unknown  |  No comments

 how to hide and show multiple div using jquery  
 -----------------------------------------------  
 simple fallow my 2 steps.  
 step 1 Scriptquery  
 ------------------:  
         <div class="inner-spacer inner-content" role="content" style="height: 378px;">  
           <form class="orb-form" id="myform">  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Stock Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv1">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             AllowNegativeStock  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="AllowNegativeStock" style="width: 200px;" id="ddlAllowNegativeStock">  
                     <option value="N">NO</option>  
                     <option value="Y">YES</option>  
                   </select>  
                 </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrency  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                   <select name="DefCurrency" style=" width:200px;" id="ddlDefCurrency">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             DefCurrencyDec  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="input">  
                   <input id="txtDefCurrencyDec" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,1)"  
                       type="button" id="btnhide1" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Item Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv2">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Item PurRate  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemPurRate" id="ddlItemPurRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ItemSalesRate  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <select name="ItemSalesRate" id="ddlItemSalesRate" style="width: 200px;">  
                   </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Vsf Item Code Cols  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtVsfItemCodeCols" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,2)"  
                       type="button" id="btnhide2" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Email Related</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv3">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             From MailID  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtFromMailID" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             SMTP Password  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtsmptpPwd" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             Password Lap Days  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtPwdLapDays" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,3)"  
                       type="button" id="btnhide3" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           <fieldset>  
             <div class="smallleft" style="border: 1px solid lightblue; width: 100%">  
               <table width="100%">  
                 <tr>  
                   <td style="width: 25%; vertical-align: top;">  
                     <div class="small">  
                       <div class="smallleft">  
                         <h6>  
                           <b>Other Details</b>  
                         </h6>  
                         <div>  
                         </div>  
                       </div>  
                     </div>  
                   </td>  
                   <td style="width: 75%;">  
                     <div id="btnfirsthideDiv4">  
                       <table style="width: 100%;">  
                         <tr>  
                           <td style="width: 30%;">  
                             Auto Saving in seconds  
                           </td>  
                           <td style="width: 70%;">  
                             <section class="col col-6">  
             <label class="select">  
                <input id="txtAutoSaving" style=" width:200px;" />  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td>  
                             ValMethod  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
               <select name="ItemSalesRate" id="ddlValMethod" style="width: 200px;">  
               <option value="N">--Select--</option>  
                <option value="Std. Rate">Std. Rate</option>  
                <option value="Weighted Avg.">Weighted Avg.</option>  
                <option value="FIFO">FIFO</option>  
               </select>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                         <tr>  
                           <td style="vertical-align: top;">  
                             Marquee Message  
                           </td>  
                           <td>  
                             <section class="col col-6">  
             <label class="select">  
                <textarea id="txtMarqueeMsg" placeholder="Marquee Message" name="Marquee Message" rows="2" style="width:250px; resize: none;"></textarea>  
             </label>  
           </section>  
                           </td>  
                         </tr>  
                       </table>  
                     </div>  
                   </td>  
                   <td style="vertical-align: top;">  
                     <button class="btn btn-primary btnGlobalHideShow" onclick="divGlobalHideShow(1,4)"  
                       type="button" id="btnhide4" title="Hide/Show">  
                       <i class="fa fa-plus-square-o"></i>&nbsp; Hide</button>  
                   </td>  
                 </tr>  
               </table>  
             </div>  
           </fieldset>  
           <div style="clear: both">  
           </div>  
           </form>  
         </div>  
 step 2 Scriptquery  
 ------------------:  
 function divGlobalHideShow(type, btnid) {  
   if (type == 1) {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(0,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; Show');  
     $("#btnfirsthideDiv" + btnid).hide();  
   } else {  
     $('#btnhide' + btnid).attr('onclick', 'divGlobalHideShow(1,' + btnid + ')');  
     $('#btnhide' + btnid).html('<i class="fa fa-plus-square-o"></i>&nbsp; hide');  
     $("#btnfirsthideDiv" + btnid).show();  
   }  
 }  
 but you have write in the script tag if you are writing jquery in html or other wise you can write in your own js file  
 if you have any querys please visit Scriptquery blogger to http://scriptquery.blogspot.in/  
 here lot of examples are there which is use full in real time applications. please share to you friends  

9:43 PM Share:
 Datetable allignment  
 --------------------  
 step1   
 -------  
 <div>  
     <fieldset style="width: 97%">  
       <div class="col-md-12">  
         <div id="BOMTableView" role="widget" class="BillOfMaterialView" style="height: 250px;  
           width: 100%">  
         </div>  
       </div>  
     </fieldset>  
 </div>  
 step 2  
 ------- in css  
 #BOMTableView #BoMTable_wrapper .dataTables_scrollHead .dataTables_scrollHeadInner  
 {  
   width: 100% !important;  
 }  
 #BOMTableView #BoMTable_wrapper .dataTables_scrollHead .dataTables_scrollHeadInner .dataTable  
 {  
   width: 100% !important;  
 }  
 #BOMTableView .dataTables_scrollBody #BoMTable  
 {  
   width: 100% !important;  
 }  
 step 3  
 --------  
 if you want call in function.  
   $('#BOMTableView').append('<table id="BoMTable" style="border: 1px solid;"></table>');  
   $('#BoMTable').append('<thead id="BoMthead" style="font-weight:Bold; background-color :Gray;color:White; "></thead>');  
   // $('#BoMTable').append('<tbody id="BoMtbody"></tbody>');  
   $('#BoMthead').append(' <tr><td style=" display:none; " >Item ID</td>' +  
                '<td nowrap>SlNO</td>' +  
                '<td nowrap>Item Code</td>' +  
                '<td nowrap>Item Name</td>' +  
                '<td nowrap>BOM</td>' +  
                '<td nowrap>S.UOM</td>' +  
                '<td nowrap>Qty</td></tr>');  
   $('#BoMTable').dataTable({  
     "scrollY": 210,  
     "scrollX": true,  
     "paging": false,  
     "searching": false,  
     "bLengthChange": false, //used to hide the property  
     "bInfo": false,  
     "bSort": false  
   });  
 if you have any quires or any assistance in .net(c# Asp.net vb.net jquery) please visit... scriptquery blogger  
 http://scriptquery.blogspot.in/  

jquery

jquery data table

Posted by Unknown  |  No comments

 Datetable allignment  
 --------------------  
 step1   
 -------  
 <div>  
     <fieldset style="width: 97%">  
       <div class="col-md-12">  
         <div id="BOMTableView" role="widget" class="BillOfMaterialView" style="height: 250px;  
           width: 100%">  
         </div>  
       </div>  
     </fieldset>  
 </div>  
 step 2  
 ------- in css  
 #BOMTableView #BoMTable_wrapper .dataTables_scrollHead .dataTables_scrollHeadInner  
 {  
   width: 100% !important;  
 }  
 #BOMTableView #BoMTable_wrapper .dataTables_scrollHead .dataTables_scrollHeadInner .dataTable  
 {  
   width: 100% !important;  
 }  
 #BOMTableView .dataTables_scrollBody #BoMTable  
 {  
   width: 100% !important;  
 }  
 step 3  
 --------  
 if you want call in function.  
   $('#BOMTableView').append('<table id="BoMTable" style="border: 1px solid;"></table>');  
   $('#BoMTable').append('<thead id="BoMthead" style="font-weight:Bold; background-color :Gray;color:White; "></thead>');  
   // $('#BoMTable').append('<tbody id="BoMtbody"></tbody>');  
   $('#BoMthead').append(' <tr><td style=" display:none; " >Item ID</td>' +  
                '<td nowrap>SlNO</td>' +  
                '<td nowrap>Item Code</td>' +  
                '<td nowrap>Item Name</td>' +  
                '<td nowrap>BOM</td>' +  
                '<td nowrap>S.UOM</td>' +  
                '<td nowrap>Qty</td></tr>');  
   $('#BoMTable').dataTable({  
     "scrollY": 210,  
     "scrollX": true,  
     "paging": false,  
     "searching": false,  
     "bLengthChange": false, //used to hide the property  
     "bInfo": false,  
     "bSort": false  
   });  
 if you have any quires or any assistance in .net(c# Asp.net vb.net jquery) please visit... scriptquery blogger  
 http://scriptquery.blogspot.in/  

9:17 PM Share:
 Hide or Show for DIV in HTML  
 ----------------------------  
 simple just write code as show below  
 $("#ul-Utilities").show(); this is for show   
 $("#ul-Utilities").hide(); this is for hide  
 if you have any quires or any assistance in .net(c# Asp.net vb.net jquery) please visit... scriptquery blogger  
 http://scriptquery.blogspot.in/  

html

Hide or Show for DIV in HTML

Posted by Unknown  |  1 comment

 Hide or Show for DIV in HTML  
 ----------------------------  
 simple just write code as show below  
 $("#ul-Utilities").show(); this is for show   
 $("#ul-Utilities").hide(); this is for hide  
 if you have any quires or any assistance in .net(c# Asp.net vb.net jquery) please visit... scriptquery blogger  
 http://scriptquery.blogspot.in/  

9:01 PM Share:
 cursor symbol in html  
 -----------------------  
 simple just write cursor tage in sytle as show below  
 style="cursor: pointer;"  
 if you have any quires or any assistance in .net(c# Asp.net vb.net jquery) please visit...  
 http://scriptquery.blogspot.in/  

html

cursor symbol in html

Posted by Unknown  |  No comments

 cursor symbol in html  
 -----------------------  
 simple just write cursor tage in sytle as show below  
 style="cursor: pointer;"  
 if you have any quires or any assistance in .net(c# Asp.net vb.net jquery) please visit...  
 http://scriptquery.blogspot.in/  

8:47 PM Share:

Thursday, November 13, 2014

 upload image and preview using jquery  
 <html xmlns="http://www.w3.org/1999/xhtml">  
 <head>  
 <title>jQuery Preview Image before upload</title>  
 <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>  
 <script type="text/javascript">  
 function showimagepreview(input) {  
 if (input.files && input.files[0]) {  
 var filerdr = new FileReader();  
 filerdr.onload = function(e) {  
 $('#imgprvw').attr('src', e.target.result);  
 }  
 filerdr.readAsDataURL(input.files[0]);  
 }  
 }  
 </script>  
 </head>  
 <body>  
 <form id="form1" runat="server">  
 <div>  
 <input type="file" name="filUpload" id="filUpload" onchange="showimagepreview(this)" />  
 </div>  
 <img id="imgprvw" alt="uploaded image preview"/>  
 </form>  
 </body>  
 </html>  

jquery

image uploading using jquery

Posted by Unknown  |  No comments

 upload image and preview using jquery  
 <html xmlns="http://www.w3.org/1999/xhtml">  
 <head>  
 <title>jQuery Preview Image before upload</title>  
 <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>  
 <script type="text/javascript">  
 function showimagepreview(input) {  
 if (input.files && input.files[0]) {  
 var filerdr = new FileReader();  
 filerdr.onload = function(e) {  
 $('#imgprvw').attr('src', e.target.result);  
 }  
 filerdr.readAsDataURL(input.files[0]);  
 }  
 }  
 </script>  
 </head>  
 <body>  
 <form id="form1" runat="server">  
 <div>  
 <input type="file" name="filUpload" id="filUpload" onchange="showimagepreview(this)" />  
 </div>  
 <img id="imgprvw" alt="uploaded image preview"/>  
 </form>  
 </body>  
 </html>  

5:02 AM Share:
 upload image and preview using jquery  
 <html xmlns="http://www.w3.org/1999/xhtml">  
 <head>  
 <title>jQuery Preview Image before upload</title>  
 <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>  
 <script type="text/javascript">  
 function showimagepreview(input) {  
 if (input.files && input.files[0]) {  
 var filerdr = new FileReader();  
 filerdr.onload = function(e) {  
 $('#imgprvw').attr('src', e.target.result);  
 }  
 filerdr.readAsDataURL(input.files[0]);  
 }  
 }  
 </script>  
 </head>  
 <body>  
 <form id="form1" runat="server">  
 <div>  
 <input type="file" name="filUpload" id="filUpload" onchange="showimagepreview(this)" />  
 </div>  
 <img id="imgprvw" alt="uploaded image preview"/>  
 </form>  
 </body>  
 </html>  

jquery

jquery upload image preview

Posted by Unknown  |  No comments

 upload image and preview using jquery  
 <html xmlns="http://www.w3.org/1999/xhtml">  
 <head>  
 <title>jQuery Preview Image before upload</title>  
 <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>  
 <script type="text/javascript">  
 function showimagepreview(input) {  
 if (input.files && input.files[0]) {  
 var filerdr = new FileReader();  
 filerdr.onload = function(e) {  
 $('#imgprvw').attr('src', e.target.result);  
 }  
 filerdr.readAsDataURL(input.files[0]);  
 }  
 }  
 </script>  
 </head>  
 <body>  
 <form id="form1" runat="server">  
 <div>  
 <input type="file" name="filUpload" id="filUpload" onchange="showimagepreview(this)" />  
 </div>  
 <img id="imgprvw" alt="uploaded image preview"/>  
 </form>  
 </body>  
 </html>  

4:52 AM Share:
Get updates in your email box
Complete the form below, and we'll send you the best coupons.

Deliver via FeedBurner
Proudly Powered by Blogger.
back to top