Edit requirement func. with ajax

Trying out edit with ajax