with this jquery, I am trying to delete the css class but it is not doing that one.
$(".validate_txt_sContactPhone.error").next().removeClass("atleastTwoChars");
<nobr><input name="ctl00$objContentPageTag$spzContactInformation$txt_sContactPhone$txt" type="text" size="25" id="ctl00_objContentPageTag_spzContactInformation_txt_sContactPhone_txt" class="xqh_TextBox_Edit validate_txt_sContactPhone error">
<div class="atleastTwoChars"></div>
<label for="ctl00_objContentPageTag_spzContactInformation_txt_sContactPhone_txt" generated="true" class="error">2*</label></nobr>
Works fine here:
http://jsfiddle.net/sVESR/
My guess would be that the
$(".validate_txt_sContactPhone.error")selector is grabbing the wrong element from somewhere else on the page.