4 ms·
I've had similar thoughts recently. I'm fairly new to jQuery, so maybe I just still don't know how to use it properly, but sometimes I don't feel that the costs
by joshuahedlund 15y ago
I've had similar thoughts recently. I'm fairly new to jQuery, so maybe I just still don't know how to use it properly, but sometimes I don't feel that the costs of adding another 'plug-in' and requiring another server call for another js file is worth it when my needs for the feature are low.
For instance, just recently I was looking into plug-ins for automatically changing text and color of input fields, but I only needed it once, and I ultimately decided it was much more efficient to just manually code this into the onclick:
> if(this.value==\'Search Products\'){ this.value=\'\';this.style.color=\'#000\';}