Posts by Josemir Melo • 11 points
2 posts
-
0
votes2
answers62
viewsA: Disable disabled from an access-level button
It is not necessary to assign the action to a variable. Test as below. if(username === 'Arthur' || username == 'admin') { document.getElementById('delete').disabled = false; } To disable the button,…
-
1
votes3
answers1954
viewsA: optimize jquery datatable with a database with more than 30,000 records
In the option data ajax, pass a function: "data": function ( d ) { d.suavariavel = "seu valor"; } So you can, through variables, make a select limiting the number of records returned. Follows an…