I am using the solution found here to show client side validation errors in a tooltip using the qTip jQuery plugin. This solution works great for client side validation but I w
The solution posted by Nick Olsen works great ! One observation :
The .replace() used in this statement only replaces the first occurrences of ‘.’
‘['
and ']‘
var inputElem = ‘#’ + $(this).attr(‘data-valmsg-for’).replace(‘.’, ‘_’).replace(‘[', '_').replace(']‘, ‘_’);
To replace all occurrences the line should be something like :
var inputElem = "#" + $(this).attr("data-valmsg-for").replace(/\./g,"_").replace(/[\[\]]/g, "_");