176
rated 0 times
[
179]
[
3]
/ answers: 1 / hits: 28210
/ 11 Years ago, mon, july 15, 2013, 12:00:00
When opening form the cursor is waiting in the text box along with help text.So there are some validation error happening. So i don't want focus when opening form, user have to click the text and type the text. But here didn't any onfocus eventhough cursor in the textbox .
if(!$.trim($(#productsTextArea1).val())){
helpTip = help string ....;
$(#productsTextArea1).val(helpTip);
$(#productsTextArea1).css(color,#999);
$(#productsTextArea1).click(function(event){
if($(#productsTextArea1).val().indexOf(Enter a return)>-1){
$(#productsTextArea1).css(color,black).val();
}
});
} else {
$(#productsTextArea1).blur();
}
Please advise...
More From » jquery