Assuming I have how can I change the value of verticalList using jquery?
I thnik what you want to do is remove that class and change to another? see addClass and removeClass
$('.verticalList').addClass('foo').removeClass('verticalList')
P.S. I've corrected spelling of 'vertical' in this version