0

mask after adding with Ajax but works without ajax pleas help me

sample code :

 <script src="/static/inputmaskjs/mask.ip-input.js"></script>
 <script src="/static/inputmaskjs/app.js"></script>
            
 <div class="ipv4"></div>
 <script>
 setTimeout(function(){ 
  $('.ipv4').html('<input ip-mask >')
   }, 3000);  // dosent work 
 </script>
                
                 
  <div class="ipv4"><input ip-mask ></div> //not peroplem
            
                enter code here**dose not work ip-mask **

1 Answer 1

0

JQuery or Javascript Input IP address mask

  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.10/jquery.mask.js"> 
   </script>
 



  <input class="ipv4">

   $(documnet).on('click','.ipv4',function(){
    
       $('.ipv4').mask('0ZZ.0ZZ.0ZZ.0ZZ', { translation: { 'Z': { pattern: /[0-9]/, 
       optional: true } } });
            
            })
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.