javascript - object doesn't support property or method 'search' ie11 -


In my javascript I have a function that is working fine in I8 but not in I11. Did not understand why this is giving me the error: While debugging it says, "Object does not support property or method 'search' 'Please give some suggestions, right name is displayDetails.js and this is the code like this: /p>

  function display (payment dopdown ID) {var locPaymentTypeId = null var index = null; if (blank == payment DepotID) {locPaymentTypeId = this.id;} other {locPaymentTypeId = payment Depot Id;} (Zero! = Public payment type ID) {if (Lokpai {Index = 1;} and if (locPaymentTypeId.search ("2")> 0) {index = 1;} and if (locPaymentTypeId.search (" 3)); {index = 2;}}  

Call it - display (payment dropdown); and locPaymentOptions.onchange = displayTerm ();

< / Div>


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -