locked
how to set function for all input RRS feed

  • Question

  • User-1634604574 posted

    i have this code i want to run it for all inputs by on line code i wrote this but but it's not correct

     input.value = (input.value).replace(/"/g, '"');

    Monday, December 9, 2019 7:10 AM

All replies

  • User288213138 posted

    Hi zhyanadil,

    i have this code i want to run it for all inputs by on line code i wrote this but but it's not correct

    According to your description, I couldn’t understand your requirement clearly.

    input.value = (input.value).replace(/"/g, '"');

    Please explain what function this line of code needs to implement, Is it in jquery or code behind? 

    please post more details information about your requirement.

    Best regards,

    sam

    Monday, December 9, 2019 8:14 AM
  • User-474980206 posted

    You need to loop thru all inputs

    $(‘input’).each(function() {
         this.value = this.value.replace(/“/g,’&quot’);
    };

    Monday, December 9, 2019 3:25 PM