Hi, adikate, you are correct, there is no click event for a text box in mb1 but the above function that kale mentioned works in it’s place. In the function, ‘input[type=text]’ is made up of the HTML tag of input and Attribute of type= text and will work for all widgets with a tag of input and attribute of type=text that can recieve focus. If you want it to work on a particular widget, just replace ‘input[type=text]’ with the id of the widget. This only works for widgets that can recieve focus, not all can, and it is usually only used on text or input widgets. So for instance, if you have a project called Untitled2 and you put a text area widget in it, it will have an id of m1-Untitled2-textArea1, put it in place of input[type=text]. Put the function in the Untitled2_custom.js file at the bottom. The function will only fire if the text box is clicked or tabbed to, it wont fire if a result is placed in it.
so, replace this
$(function() {
$(‘input[type=text]’).focus(function() {
$(this).val(”);
});
});
with this
$(function() {
$(‘#m1-Untitled2-textArea1’).focus(function() {
$(this).val(”);
});
});​