Skip to content

Instantly share code, notes, and snippets.

View Sarapulov's full-sized avatar

Andrey Sarapulov Sarapulov

  • EMEA
View GitHub Profile
@Sarapulov
Sarapulov / gist:51ae8abdbf6023bdac55
Last active August 29, 2015 14:20
Example of Help Center field and attachment validation
// EXAMPLE OF FIELD VALIDATION
$('#request_custom_fields_23591935')
.focusout(function()
{
var nameReg = /^[A-Za-z]+$/;
var isValid = $('#request_custom_fields_23591935')
.val()
.match(nameReg);
if (isValid && isValid.length > 0)
{
@Sarapulov
Sarapulov / gist:68ab95c177cb414ecc69
Created July 11, 2014 20:42
My test GIST record
My test GIST record