CINXE.COM
India Code: Home
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-121785794-2"></script> <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script> <script type="text/javascript" src="/static/js/fontchanger.js"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-121785794-2'); </script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-121785794-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-121785794-1'); </script> <!DOCTYPE html> <html> <head> <title>India Code: Home</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="description" content="Contains all Enforced Central and State Acts linked with Subordinate Data like Rules,Regulations,Notifications,Orders,Circulars,Ordinances,Statutes." /> <meta name="keywords" content="india code,acts,central acts,state acts,indian acts,act,constitution acts,india law,indian law" /> <meta name="Generator" content="DSpace 5.5" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" href="/favicon.png" type="image/x-icon" /> <link rel="stylesheet" href="/static/css/jquery-ui-1.10.3.custom/redmond/jquery-ui-1.10.3.custom.css" type="text/css" /> <link rel="stylesheet" href="/static/css/bootstrap/bootstrap.min.css" type="text/css" /> <link rel="stylesheet" href="/static/css/bootstrap/bootstrap-theme.min.css" type="text/css" /> <link rel="stylesheet" href="/static/css/bootstrap/dspace-theme.css" type="text/css" /> <link rel="stylesheet" href="/static/css/bootstrap/dspace-theme2.css" type="text/css" /> <link rel="stylesheet" href="/static/css/bootstrap/lowContrast.css" type="text/css" / title="contrast"> <link id="fontchange" rel="stylesheet" type="text/css" href="/static/css/bootstrap/a.css"> <link rel="stylesheet" href="/static/css/jquery.dataTables.min.css" type="text/css" /> <link rel="alternate" type="application/rdf+xml" title="Items in India Code" href="/feed/rss_1.0/site" /> <link rel="alternate" type="application/rss+xml" title="Items in India Code" href="/feed/rss_2.0/site" /> <link rel="alternate" type="application/rss+xml" title="Items in India Code" href="/feed/atom_1.0/site" /> <link rel="search" type="application/opensearchdescription+xml" href="/open-search/description.xml" title="DSpace" /> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="/static/js/html5shiv.js"></script> <script src="/static/js/respond.min.js"></script> <![endif]--> <style> .headerImgText{ color: #06447d; margin-left: 38.6%; font-size: 15px; margin-top: -22px; font-weight: bold; } .headerImgText2{ color: #06447d; margin-left: 32.6%; font-size: 12px; margin-top: -14px; font-weight: bold; } @media only screen and (max-width: 600px) { .headerImgText2{ color: #06447d; margin-left: 32%; font-size: 5px; margin-top: -6px; } } </style> </head> <body class="undernavigation"> <header class="navbar navbar-default"> <div style="width: 100%; color: #fff;"> <div id="accessibility" class="col-sm-8 col-sm-offset-1" style="margin-top: 4px;"> <a class="access" href="/screenreader.jsp" style="border: none; font-weight: bold; font-size: 13px;"> Screen Reader Access</a> <a href="#" onclick="decreaseFontSize()" class="texttoggler" rel="xsmallview" data-toggle="tooltip" data-placement="bottom" title="Extra Small Size" style="font-size: 13px;"> A- </a> <a href="#" onclick="sameFontSize()" class="texttoggler" rel="normalview" data-toggle="tooltip" data-placement="bottom" title="Normal Size" style="font-size: 13px;"> A </a> <a href="#" onclick="increaseFontSize()" class="texttoggler selectedtoggler" rel="largeview" data-toggle="tooltip" data-placement="bottom" title="large Size" style="font-size: 13px;"> A+</a> <a href="#" onclick="setActiveStyleSheet('lowc');location.reload(true); return false;" data-toggle="tooltip" data-placement="bottom" title="Light Theme" style="color: #000; background-color: #fff; font-size: 13px;">T</a> <a href="#" onclick="setActiveStyleSheet('highc');location.reload(true); return false;" data-toggle="tooltip" data-placement="bottom" title="Dark Theme" style="background-color: #000; font-size: 13px;"> T </a> </div> <div class="col-sm-3"> <ul class="nav navbar-nav navbar-right"> <li class="dropdown more-link"><a href="#" class="dropdown-toggle" data-toggle="dropdown" style="padding: 2px;">Language<b class="caret"></b></a> <ul class="dropdown-menu"> <li> <a onclick="javascript:document.repost.locale.value='hi'; document.repost.submit();" href="?locale=hi"> हिंदी </a> </li> <li> <a onclick="javascript:document.repost.locale.value='en'; document.repost.submit();" href="?locale=en"> English </a> </li> </ul></li> </ul> </div> </div> <a class="sr-only" href="#content">Skip navigation</a> <!--header start --> <div class="visible-lg"> <a href="/"> <img class="img-responsive" src="/image/customizeimage/CEN.jpg" class="img-responsive" alt="India Code" width="100%"> </a> </div> <div class="container-fluid hidden-lg"> <a href=""> <img class="img-responsive" src="/image/customizeimage/CEN.jpg" class="img-responsive" alt="India Code" width="100%"> </a> <div class="headerImgText2"> </div> </div> <!--header end --> <div class="container-fluid"> <style> .container-fluid.sam { // text-align: center; } @media only screen and (max-width: 768px) { .container-fluid.sam { text-align: left; margin-left: 10px; } } </style> <div class="container-fluid sam"> <!-- Changed by Mashhood --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation"> <ul class="nav navbar-nav nav-li"> <li class=""><a href="/"> <i class="glyphicon glyphicon-home" aria-hidden="true"></i> Home</a></li> <li class="visible-lg visible-xs"><a href="/about.jsp"> About Us </a></li> <li class="dropdown"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-zoom-in" aria-hidden="true"></i> Browse Central Acts <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="/handle/123456789/1362/browse?type=shorttitle">Short Title</a></li> <li><a href="/handle/123456789/1362/browse?type=actno">Act Number</a></li> <li><a href="/handle/123456789/1362/browse?type=actyear">Act Year</a></li> <li><a href="/handle/123456789/1362/browse?type=dateissued">Enactment Date</a></li> <li><a href="/handle/123456789/1362/browse?type=ministry">Ministry</a></li> <li><a href="/handle/123456789/1362/browse?type=department">Department</a></li> </ul> </li> <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">State Acts <b class="caret"></b></a> <div class="dropdown-menu" style="min-width: 930px; left: -234px; taxt-align: left;"> <div class="col-sm-3" style="padding:3px 0;"> <ul> <!-- <li><a href="/community-list"> Communities<br/>& Collections</a></li> <li class="divider"></li> --> <!-- <li class="dropdown-header">Browse State By:</li> --> <li style=""><a href="/handle/123456789/2454/">Andaman and Nicobar Islands</a></li> <li><a href="/handle/123456789/2486/">Andhra Pradesh</a></li> <li><a href="/handle/123456789/2487/">Arunachal Pradesh</a></li> <li><a href="/handle/123456789/2513/">Assam</a></li> <li><a href="/handle/123456789/2488/">Bihar</a></li> <li><a href="/handle/123456789/2489/">Chandigarh</a></li> <li><a href="/handle/123456789/2490/">Chhattisgarh</a></li> <li><a href="/handle/123456789/2492/">Dadra and Nagar Haveli and Daman and Diu</a></li> <li><a href="/handle/123456789/2493/">Delhi</a></li> </ul> </div> <div class="col-sm-3"> <ul> <li><a href="/handle/123456789/2514/">Goa</a></li> <li><a href="/handle/123456789/2455/">Gujarat</a></li> <li><a href="/handle/123456789/2193/">Haryana</a></li> <li><a href="/handle/123456789/2494/">Himachal Pradesh</a></li> <li><a href="/handle/123456789/2495/">Jammu and Kashmir</a></li> <li><a href="/handle/123456789/2515/">Jharkhand</a></li> <li><a href="/handle/123456789/2485/">Karnataka</a></li> <li><a href="/handle/123456789/2516/">Kerala</a></li> <li><a href="/handle/123456789/14011/">Ladakh</a></li> <li><a href="/handle/123456789/2496/">Lakshadweep</a></li> </ul> </div> <div class="col-sm-3"> <ul> <li><a href="/handle/123456789/2497/">Madhya Pradesh</a></li> <li><a href="/handle/123456789/2517/">Maharashtra</a></li> <li><a href="/handle/123456789/2498/">Manipur</a></li> <li><a href="/handle/123456789/2499/">Meghalaya</a></li> <li><a href="/handle/123456789/2500/">Mizoram</a></li> <li><a href="/handle/123456789/2501/">Nagaland</a></li> <li><a href="/handle/123456789/2502/">Odisha</a></li> <li><a href="/handle/123456789/2503/">Puducherry</a></li> <li><a href="/handle/123456789/2504/">Punjab</a></li> </ul> </div> <div class="col-sm-3" style="border: none;"> <ul> <li><a href="/handle/123456789/2505/">Rajasthan</a></li> <li><a href="/handle/123456789/2506/">Sikkim</a></li> <li><a href="/handle/123456789/2507/">Tamil Nadu</a></li> <li><a href="/handle/123456789/2508/">Telangana</a></li> <li><a href="/handle/123456789/2509/">Tripura</a></li> <li><a href="/handle/123456789/2511/">Uttarakhand </a></li> <li><a href="/handle/123456789/2510/">Uttar Pradesh </a></li> <li><a href="/handle/123456789/2512/">West Bengal</a></li> </ul> </div> </div></li> <li style="padding: 0px 5px 0 10px; color: #fff;">Central Acts <a style="color: rgb(255, 255, 255); display: inline-block; padding: 7px 5px;" href="http://legislative.gov.in/year-of-enactment" target="_blank" onmouseover="this.style.color='#000'" onmouseout="this.style.color='#fff'"> (Hindi)</a> <span style="border-right: 1px solid rgb(255, 255, 255); margin-right: 2px;"></span> <a style="color: rgb(255, 255, 255); display: inline-block; padding: 7px 5px;" onmouseover="this.style.color='#000'" onmouseout="this.style.color='#fff'" href="http://legislative.gov.in/regional-language" target="_blank"> Regional Language ) </a></li> <li><a target="_blank" href="https://datastudio.google.com/open/1d7CeVALJlKxrXDyo3GwQqHpyYBALgmOz"><i class="glyphicon" aria-hidden="true"></i> Dashboard</a></li> <li><a href="/repealed-act/repealed-act.jsp"><i class="glyphicon" aria-hidden="true"></i>Repealed Acts</a></li> <li><a href="/spent-act/spent-act.jsp"><i class="glyphicon" aria-hidden="true"></i>Spent Acts</a></li> <li class="visible-lg visible-xs"><a href="https://upload.indiacode.nic.in"><i class="glyphicon" aria-hidden="true"></i> Upload</a></li> <li class="dropdown more-link hidden-lg hidden-xs"><a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">More<b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="/about.jsp"> About Us </a></li> <li><a href="https://upload.indiacode.nic.in"><i class="glyphicon" aria-hidden="true"></i> Upload</a></li> </ul> </li> <!-- <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">Patrika <b class="caret"></b></a> <div class="dropdown-menu" style="min-width: 150px; taxt-align: left;"> <ul> <li><a href="/handle/123456789/19106/browse?type=patrikaenglishtitle"> Title(EN) </a></li> <li><a href="/handle/123456789/19106/browse?type=patrikahindititle"> Title(HI) </a></li> <li><a href="/handle/123456789/19106/browse?type=patrikapubliser"> Publiser </a></li> <li><a href="/handle/123456789/19106/browse?type=patrikatype"> Type </a></li> <li><a href="/handle/123456789/19106/browse?type=patrikamonth"> Quater-Month </a></li> <li><a href="/handle/123456789/19106/browse?type=patrikayear"> Year </a></li> <li><a href="/handle/123456789/19106/browse?type=patrikaissn"> ISSN </a></li> <li><a href="/handle/123456789/19106/browse?type=patrikaindex"> Index </a></li> </ul> </div></li> --> <form method="get" action="/handle/123456789/1362//simple-search" class="pull-right visible-lg visible-md form-position navbar-form"><input type="hidden" name="nccharset" value="293976DA"> <div class="input-group"> <input type="text" class="nav-search form-control" placeholder="Search..." name="query" id="query" size="12" /> <div class="input-group-btn"> <button type="submit" class="nav-search btn btn-default"> <i class="glyphicon glyphicon-search"></i> </button> </div> </div> </form> </ul> <!-- Changed by Mashhood --> <ul class="nav navbar-nav navbar-right"> </ul> <div class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <ul class="dropdown-menu"> <li><a href="/mydspace">My DSpace</a></li> </ul> </li> </div> </nav> </div> </div> </header> <main id="content" role="main"> <div class="container-fluid"> <!-- changes made by samad start here --> <!-- changes made by samad end here --> <style> p.homePageTitle { font-size: 50px; color: white; text-align: center; align-self: center; /* margin-left: 200px; */ } .drphov { min-width: 110px; } .container .panel .panel-body .list-inline .dropdown:hover .drphov { display: block; } .hide-labels { display: none; } .ui-autocomplete { cursor: pointer; height: 120px; overflow-y: scroll; } #confirm { display: none; background-color: #F3F5F6; color: #000000; border: 1px solid #aaa; position: fixed; width: 300px; height: 100px; left: 30%; top: 30%; box-sizing: border-box; text-align: center; } #confirm button { background-color: #FFFFFF; display: inline-block; border-radius: 12px; border: 4px solid #aaa; padding: 5px; text-align: center; width: 60px; cursor: pointer; } #confirm .message { text-align: left; } @media only screen and (min-width: 768px) { #pan4 ul.list-inline { margin: 0 10px; } } </style> <main id="content" role="main"> <div class="container-fluid"> <marquee onmouseover="this.stop();" onmouseout="this.start();" style="font-size: 16px; font-weight: bold;" scrolldelay="5 sec"> <a href="/image/final-logo_update.jpg" target="blank" style="color: #084279;"> India Code Logo has been Modified, Click here to Download for updating the Logo in your Website. </a> </marquee> <div class="container" style="max-width: 1100px;"> <div class="row"> <!-- row starts here--> <br /> <div class="col-sm-10 col-sm-offset-1"> <div class="panel panel-primary" id="pan2" style="box-shadow: 1px 1px 16px #6E7F80; border-radius: 10px; border: none;"> <div class="panel-body " style="border-radius: 10px; background-color: #2d94d5; min-height: 350px;"> <br /> <br /> <form method="get" action="/handle/123456789/1362/simple-search" class="bs-example bs-example-form" data-example-id="input-group-with-button" style="max-width: 745px; margin: 0 auto;"><input type="hidden" name="nccharset" value="293976DA"> <p class="homePageTitle"> India Code </p> <br /> <p style="color: cornsilk; max-width: 700px; font-size: 14px; margin: 0 auto;"> <b>Search Hint : </b> Type your keyword in box below, you can filter your query in advance search for precise result. </p> <br /> <br /> <div class="input-group"> <input type="text" class="form-control" placeholder="---Search All---" name="query" id="tequery" size="25" autocomplete="off" required="true" minlength="3" /> <span class="input-group-btn"> <button class="form-control btn" type="submit" id="btngo" name="btngo" style="border-radius: 0 5px 5px 0; width: 90px; background-color: #004b8e; color: #fff;"> Go! </button> </span> </div> <br /> <label class="radio-inline" style="font-size: 17px; color: white; margin-left: 5px;"><input type="radio" name="searchradio" value="all"> All</label> <label class="radio-inline" style="font-size: 17px; color: white; margin-left: 5px;"><input type="radio" name="searchradio" value="acts" checked> Acts</label> <label class="radio-inline" style="font-size: 17px; color: white; margin-left: 5px;"><input type="radio" name="searchradio" value="section"> Sections</label> <label class="radio-inline" style="font-size: 17px; color: white; margin-left: 5px;"><input type="radio" name="searchradio" value="subordinate"> Subordinate Legislations</label> <label class="radio-inline" style="font-size: 17px; color: white; margin-left: 5px;"> <a id="incometaxlink" target="_blank" href="https://www.incometaxindia.gov.in/pages/tax-laws-rules.aspx" style="color: #fff; text-decoration: none;"><span class="glyphicon glyphicon-share"></span> Income-tax and Other Direct Taxes</a> </label> <br> <br> <div class="modal" id="confirmModal" style="display: none; z-index: 1050; margin-top: 150px;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-body" style="text-align: center; font-size: x-large;" id="confirmMessage"></div> <div class="modal-footer"> <button type="button" class="btn btn-primary" id="confirmOk">Ok</button> <button type="button" class="btn btn-default" id="confirmCancel" onclick = "cancelfun()">Cancel</button> </div> </div> </div> </div> <div class="hide-labels"> <p style="font-size: 13px; color: white;"> For specific search, please select the following :- </p> <label class="radio-inline" style="font-size: 17px; color: white;"><input type="radio" name="searchradio" value="rules"> Rules</label> <label class="radio-inline" style="font-size: 17px; color: white;"><input type="radio" name="searchradio" value="regulation"> Regulations</label> <label class="radio-inline" style="font-size: 17px; color: white;"><input type="radio" name="searchradio" value="notification"> Notifications</label> <label class="radio-inline" style="font-size: 17px; color: white;"><input type="radio" name="searchradio" value="order"> Orders</label> <label class="radio-inline" style="font-size: 17px; color: white;"><input type="radio" name="searchradio" value="ordinance"> Ordinances</label> <label class="radio-inline" style="font-size: 17px; color: white;"><input type="radio" name="searchradio" value="statutes"> Statutes</label> <label class="radio-inline" style="font-size: 17px; color: white;"> <input type="radio" name="searchradio" value="circular"> Circulars</label> </br> </br> </div> </form> </div> </div> </div> </div> <!-- row ends here--> </div> <!-- container fluid ends --> </div> <div class="container" style="max-width: 930px;"> <div class="panel panel-info" id="pan2" style="box-shadow: 1px 1px 16px #6E7F80; border-radius: 10px;"> <div class="panel-body" style="border-radius: 10px; padding: 15px 2px;"> <div class="img" id="pan4"> <ul class="list-inline"> <li class="p10 img-hover" style=""><a target="_blank" href="https://supremecourtofindia.nic.in/"><img src="image/l3.jpg" class="img-responsive" alt="Reference" style="width: 132px; height: 50px;"> </a></li> <li class="p10 img-hover" style=""><a target="_blank" href="https://legislative.gov.in/"><img src="image/202.jpg" class="img-responsive" alt="Reference" style="width: 132px; height: 50px;"></a></li> <li class="p10 img-hover" style=""><a target="_blank" href="https://legalaffairs.gov.in"><img src="image/l1.jpg" class="img-responsive" alt="Reference" style="width: 132px; height: 50px;"></a></li> <li class="p10 img-hover" style=""><a target="_blank" href="https://legislative.gov.in/constitution-of-india"><img src="image/c3.jpg" class="img-responsive" alt="Reference" style="width: 132px; height: 50px;"></a></li> <li class="p10 img-hover" style=""><a target="_blank" href="https://doj.gov.in/"><img src="image/101.jpg" class="img-responsive" alt="Reference" style="width: 132px; height: 50px;"></a></li> <li class="p10 img-hover" style=""><a target="_blank" href="https://egazette.nic.in/"><img src="image/eglogofinal.png" class="img-responsive" alt="Reference" style="width: 132px; height: 50px;"></a></li> </ul> </div> </div> </div> </div> <!-- </div> --> </main> <style> ul.footer-disclaimer { display: none; } </style> </div> </main> <dspace:layout collectionAbbreviation="CEN"> <footer class="" style="margin-bottom: 0px; padding: 0px;"> <div id="designedby" class="container-fluid footer-color" style="height: auto;"> <div class="row" style="margin: 0px auto; padding: 0px"> <div class="col-sm-6 col-sm-offset-6" style="padding: 0px"> <ul class="list-inline navbar-right" style="padding: 0px; margin: 0px 20px 0px 0px;"> <li style="border-right: 1px solid #fff;"><a href="/image/final-logo_update.jpg" target="blank" style="color: #ff3c3c;">Download India Code Logo</a></li> <li style="border-right: 1px solid #fff;"><a href="/disclaimer.jsp?col=123456789/1362&abv=CEN" style="color: #fff;">Disclaimer</a></li> <li style="border-right: 1px solid #fff;"><a href="/feedback/form.jsp?col=123456789/1362&abv=CEN" style="color: #fff;">Feedback</a></li> <li style="border-right: 1px solid #fff;"><a href="/help/userGuide.pdf" target="_blank" style="color: #fff;">User Guide</a></li> <li><a href="/contactus.jsp?col=123456789/1362&abv=CEN" style="color: #fff;"><i class="glyphicon glyphicon-earphone" aria-hidden="true"></i> Contact Us</a></li> </ul> </div> <ul class="navbar-right" style="margin-right: 20px;"> </br> </li> </ul> <div class="col-sm-6 col-sm-offset-3" style="padding: 0px;"> <p class="footer-content"> Content Provided by the Ministries/Departments in the Government of India. <br> Site designed and developed by National Informatics Centre, <br> A- Block, C.G.O. Complex, Lodhi Road, New Delhi - 110 003, INDIA. </p> </div> </div> </div> </footer> </dspace:layout> </body> <script src="/static/js/accessibility.js"></script> <script src="/static/js/jquery_pagination.js"></script> <script src="/static/js/jquery.dataTables.min.js"></script> <script type='text/javascript' src='/static/js/jquery/jquery-ui-indiacode1121.custom.min.js'></script> <script type='text/javascript' src='/static/js/bootstrap/bootstrap-indiacode337.min.js'></script> <script type="text/javascript" src="/static/js/choice-support.js"> </script> <script type="text/javascript" src="/static/js/jquery/jquery.validate.min.js"> </script> <script type="text/javascript" src="/static/js/jquery/additional-methods.min.js"> </script> <script type="text/javascript" src="/static/js/validate.min.js"> </script> <!-- /* CSRF-by Samad Khan start */ --> <!-- /* CSRF-by Samad Khan start */ --> </html> <script> /* add input fields attribute on page ready function */ window.onload=function() { var inputFields ="<input type='hidden' name='page-token' value='62c6a8d2582a' />"; inputFields = inputFields + "<input type='hidden' name='page-token-value' value='72b87fa672bd89ba50743e5c86f6cb5f' />"; $('form').prepend(inputFields); }; </script> <script> $(document).ready(function() { selectedRadio="acts"; $("#tequery").attr("placeholder", "---Search Acts---"); $('input[name=searchradio]').change(function(){ selectedRadio = $('input[name=searchradio]:checked').val(); if(selectedRadio=="all"){ $("#tequery").attr("placeholder", "---Search All---"); $("#tequery").attr("minlength", "3"); }else if(selectedRadio=="section"){ $("#tequery").attr("placeholder", "---Search Section---"); $("#tequery").attr("minlength", "1"); }else if(selectedRadio=="subordinate"){ $("#tequery").attr("placeholder", "---Search Subordinate Legislations---"); $("#tequery").attr("minlength", "3"); }else if(selectedRadio=="acts"){ $("#tequery").attr("placeholder", "---Search Acts---"); $("#tequery").attr("minlength", "3"); }else if(selectedRadio=="rules"){ $("#tequery").attr("placeholder", "Rules Search..."); $("#tequery").attr("minlength", "3"); }else if(selectedRadio=="regulation"){ $("#tequery").attr("placeholder", "Regulations Search..."); $("#tequery").attr("minlength", "3"); }else if(selectedRadio=="notification"){ $("#tequery").attr("placeholder", "Notifications Search..."); $("#tequery").attr("minlength", "3"); }else if(selectedRadio=="order"){ $("#tequery").attr("placeholder", "Orders Search..."); $("#tequery").attr("minlength", "3"); }else if(selectedRadio=="ordinance"){ $("#tequery").attr("placeholder", "Ordinances Search..."); $("#tequery").attr("minlength", "3"); }else if(selectedRadio=="statutes"){ $("#tequery").attr("placeholder", "Statutes Search..."); $("#tequery").attr("minlength", "3"); }else if(selectedRadio=="circular"){ $("#tequery").attr("placeholder", "Circulars Search..."); $("#tequery").attr("minlength", "3"); } if(selectedRadio=="subordinate"){ $('.hide-labels').show(); }else if(selectedRadio=="all" || selectedRadio=="acts" || selectedRadio=="section"){ $('.hide-labels').hide(); } }); var YOUR_MESSAGE_STRING_CONST = "<p>You are being redirected to the National website of Income-tax Department:<span style=\"color:blue;\">www.incometaxindia.gov.in</span></p>"; src = "/SearchAutoComplete"; actname = ""; st = '123456789/1362'; // Load the cities straight from the server, passing the country as an extra param $("#tequery") .autocomplete( { source : function(request, response) { $.ajax({ url : src, dataType : 'json', data : { term : request.term, action : selectedRadio, state : st }, success : function(data) { response(data); } }); }, minLength : 3, delay : 300, focus : function(event, ui) { actname = $( '.ui-menu-item-wrapper') .html(); }, select : function(event, ui) { var checkedValue = selectedRadio; if (checkedValue == "acts") { if (ui.item.value == 'The Income-tax Act, 1961') { confirmDialog( ui.item.value, YOUR_MESSAGE_STRING_CONST); } else if (ui.item.value == ' The Prohibition of Benami Property Transactions Act, 1988') { confirmDialog( ui.item.value, YOUR_MESSAGE_STRING_CONST); } else if (ui.item.value == 'The Black Money (Undisclosed Foreign Income and Assets) and Imposition of Tax Act, 2015') { confirmDialog( ui.item.value, YOUR_MESSAGE_STRING_CONST); } else if (ui.item.value == 'The Wealth-tax Act, 1957') { confirmDialog( ui.item.value, YOUR_MESSAGE_STRING_CONST); } else if (ui.item.value == 'The Gift-tax Act, 1958') { confirmDialog( ui.item.value, YOUR_MESSAGE_STRING_CONST); } else { var condition = true; //check whatever you like if (condition) { $('#btngo', this) .attr( 'disabled', 'disabled'); $('form') .bind( 'submit', function( e) { e .preventDefault(); }); } window.location = "/ViewSelectedActDetailsServlet?act_name=" + ui.item.value + "&handleid=" + st; } } } }); $('#incometaxlink').on( 'click', function(e) { e.preventDefault(); confirmDialogLink( YOUR_MESSAGE_STRING_CONST, function() { //My code to delete console.log("deleted!"); }); }); $('#btngo').on( 'click', function(e) { var title = $("#tequery").val(); var incometax = title.toLowerCase(); var incometax2 = title.toLowerCase(); const taxacts = new Array("The Income-tax Act, 1961", "The Prohibition of Benami Property Transactions Act, 1988", "The Black Money (Undisclosed Foreign Income and Assets) and Imposition of Tax Act, 2015", "The Wealth-tax Act, 1957", "The Gift-tax Act, 1958"); taxacts.forEach(myFunction); function myFunction(item, index) { /* var str = "The Income-tax Act, 1961"; */ var str = item; var res = str.toLowerCase(); var str2 = "incometax"; incometax2 = incometax2.replace(/ /g, ""); incometax2 = incometax2.replace(/[^a-zA-Z 0-9]+/g, ""); if ((incometax.includes(res)) || (incometax2.includes(str2)) && selectedRadio=="acts") { /*if (incometax.includes(res)) {*/ e.preventDefault(); confirmDialog(title, YOUR_MESSAGE_STRING_CONST, function() { //My code to delete console.log("deleted!"); }); } } }); function confirmDialog(title, message, onConfirm) { var fClose = function() { console.log("fclose called"); if (title != 'itacall') { /* window.location = "/handle/123456789/1362/simple-search?query=" + title; */ window.location = "/handle/"+st+"/simple-search?query=" + title; } modal.modal("hide"); }; var fwd = function() { modal.modal("hide"); if (title == 'The Prohibition of Benami Property Transactions Act, 1988') { console.log("1"); window .open( "https://www.incometaxindia.gov.in/pages/indiacode/prohibition-of-benami-property-transactions-act-1988.aspx", "_blank"); } else if (title == 'The Black Money (Undisclosed Foreign Income and Assets) and Imposition of Tax Act, 2015') { console.log("2"); window .open( "https://www.incometaxindia.gov.in/pages/indiacode/black-money-undisclosed-income-act.aspx", "_blank"); } else if (title == 'The Wealth-tax Act, 1957') { console.log("4"); window .open( "https://www.incometaxindia.gov.in/pages/indiacode/wealth-tax-act.aspx", "_blank"); } else if (title == 'The Gift-tax Act, 1958') { console.log("5"); window .open( "https://www.incometaxindia.gov.in/pages/indiacode/gift-tax-act.aspx", "_blank"); } else if (title == 'The Income-tax Act, 1961') { console.log("6"); window .open( "https://www.incometaxindia.gov.in/pages/indiacode/income-tax-act.aspx", "_blank"); } }; var modal = $("#confirmModal"); modal.modal("show"); $("#confirmMessage").empty().append(message); $("#confirmOk").unbind().one('click', onConfirm) .one('click', fwd); $("#confirmCancel").unbind().one("click", fClose); } function confirmDialogLink(message, onConfirm) { var fClose = function() { console.log("fclose called"); modal.modal("hide"); }; var fwd = function() { modal.modal("hide"); window .open( "https://www.incometaxindia.gov.in/pages/indiacode/tax-laws-rules.aspx", "_blank"); }; var modal = $("#confirmModal"); modal.modal("show"); $("#confirmMessage").empty().append(message); $("#confirmOk").unbind().one('click', onConfirm) .one('click', fwd); $("#confirmCancel").unbind().one("click", fClose); } }); function cancelfun() { window.location.href = "https://www.indiacode.nic.in"; } </script>