Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Create new html tag in Drupal

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 435
    Comment on it

    Sometimes we need to use some unique tags which are not available in HTML. For this we can just use these tags in our html coding, but in some specific cases our browser will not display them because these are not identified and comes within "<>". To avoid this condition we can add these tags('rep' in my case) programmatically using jquery in our hook_init funciton of module:

    function mymodule_init() {
      drupal_add_js('$(function(){
        document.createElement("rep");
       });', 'inline');
    }
    

    Or we can add them directly in any javascript file which is already added to website

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: