.attr ('disabled', 'disabled') or .attr ('disabled', true) to disable input

Both .attr('disabled', 'disabled')and .attr('disabled', true)are working in my code, but I'm just wondering: which of the two is more effective and / or which is increasingly being used? Is there any difference? Maybe in terms of performance?

+4
source share
2 answers

Irrelevant. But from jQuery1.6 + you should use$("input").prop('disabled', true);

+16
source

$ startdate = date ('ym-d', strtotime ($ _ POST ['startdate'])); $ enddate = date ('ym-d', strtotime ($ _ POST ['enddate'])); to convert date to mysql database

date field in browser is different from firefox and chrome date in ui browser

-3

All Articles