Homepage United Colleges | Codes and Scripts

Latest Posts

Copy Button for Text Under Pre Tag

<pre id="textToCopy">Hello</pre> <button onclick="copyText()">Copy Text</button> <script>...

Javascript Hide Element

<script>   // Get the button by its id   var hideButton = document.getElementById('hideButton');   // Add a click event listen...

Get or Display Custom Field on WordPress

<?php echo get_post_meta(get_the_ID(), ' fieldname ', TRUE); ?> Replace fieldname with your custom field name. This is a PHP c...

Display or Get Input Value in JavaScript

In JavaScript, you can use the value property of an input element to get or set the value of the element. For example, given an input elemen...

Breadcrumb Schema Script Code for Website

Adding a breadcrumb schema script code to your website can be a great way to improve its usability and help your visitors find their way ar...

Add Social Media Button on Website or Blog

The ability to engage with a larger audience and compete with other users is what makes social media popular. Social media  outlets can...