Today I was writing a code to get error text from spring generated span field using jQuery. Where I noticed that name is having a period and asterisk which is not directly supported by selectors.
<div id=”test1″><span id=”*.errors“>The information you entered is invalid. Try again.</span></div>
Continue reading “jQuery: Problem with id containing a period or asterisk”
Today I was doing some code in which I need to update the TextArea text onclick of a list option. I noticed It was working fine in IE all the time but inside Firefox and Chrome it works for first time but next time don’t update the content.
I was using below code
var optionValue=$(‘#serviceNm :selected’).attr(‘nits’);
Continue reading “jQuery : firefox and chrome onchange textarea update issue”