Lucas Costa Lucas Costa - 6 months ago 16
Javascript Question

Diasable input type number after success Jquery ajax

I have a js function called after dropdown change and create a dynamic rows table and in one column is generated

<input type="number">
. In some cases this input must be disabled. Something like this:

<input type="number" disabled="true">


obvious this example is illustrative.

San San
Answer

Try this.

$(':input[type="number"]').prop('disabled',true);