Posts by Danilo Fernando • 78 points
2 posts
-
3
votes2
answers4179
viewsA: Validating CPF and CNPJ with php Function
Just create a function that checks the number of digits of the value fuction cpfOuCnpj($cpfoucnpj){ //Caso seja CNPJ if(strlen($cpfoucnpj) == 14) { valida_cpf($cpfoucnpj); } //Caso seja CPF…
phpanswered Danilo Fernando 78 -
3
votes1
answer1592
viewsQ: Change order of objects in the array by dragging rows from the JS angular table
I have a table and using jquery ( sortable ), I’d like when you drag the line by modifying the html of the table, the order of the array change Example: CAMPO1 CAMPO2 /// DRAG THIS ONE DOWN CAMPO3…