Skip to content

Instantly share code, notes, and snippets.

Avatar

John Peng PengYilong

View GitHub Profile
@PengYilong
PengYilong / functions.php
Last active Aug 8, 2018
common function
View functions.php
<?php
/**
* common functions
*
*/
/**
* print_r
*
*/
@PengYilong
PengYilong / functions.jquery.js
Last active Aug 8, 2018
common functions for js
View functions.jquery.js
function submitLock(obj, type)
{
var value = obj.val();
if( type==1 ){
obj.attr('disabled', 'disabled');
obj.val(value+'...');
} else {
obj.removeAttr('disabled');
obj.val(value.replace('...',''));
}
You can’t perform that action at this time.