Day: May 21, 2013

You can add new div inside your web page by jquery always you want. You’ve to add the following code in your javascript function: $("#myExistentDiv").append("<div id='MyNewDiv'>This is my dynamic DIV</div>"); In this case, you’re adding the div “MyNewDiv” inside your div with ID “myExistentDiv”, just at the end of it. You can read more in […]
You can remove any href that contains specific text inside the link. If you want to remove the link to any page that contains “DispForm” you can do it like this: $('a[href*="DispForm"]').removeAttr("href"); ‘*=’ means ‘Contains’, but you can use anything you need: *= Contains = Equal != Not equal ^= Starts With $= Ends With
We want to hide “Level1” div that contains inside any “Level3” div in this code: <div class="level1"> Level 1A <div class="level2"> Level 2A <div class="level3"> Level 3A </div> </div> </div> <div class="level1"> Level1B <div class="level2"> Level2B </div> </div> We can do it by JQuery, once the page is loaded, that way: <script type="text/javascript"> $(document).ready(function(){ hideLevelOne(); […]