Change Placeholder Text using jQuery

$(document).ready(function(){ $(‘form’).find(“input[type=textarea], input[type=password], textarea”).each(function(ev) { if(!$(this).val()) { $(this).attr(“placeholder”, “Type your answer here”); } }); }); Copy and paste this code in your js file, this will change all placeholder text from whole site.

Twitter bootstrap remote modal shows same content every time

The problem is two-fold. First, once a Modal object is instantiated, it is persistently attached to the element specified by data-target and subsequent calls to show that modal will only call toggle() on it, but will not update the values in the options. So, even though the href attributes are different on your different links, … Read more

How to disable mouse scroll wheel scaling with Google Maps API

In version 3 of the Maps API you can simply set the scrollwheel option to false within the MapOptions properties: options = $.extend({ scrollwheel: false, navigationControl: false, mapTypeControl: false, scaleControl: false, draggable: false, mapTypeId: google.maps.MapTypeId.ROADMAP }, options); If you were using version 2 of the Maps API you would have had to use the disableScrollWheelZoom() … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)