webform field mandatory widh placeholder don't work

Pako204's picture
Pako204
Wed, 03/09/2016 - 10:40
#1
webform field mandatory widh placeholder don't work

hi,

webform field mandatory widh placeholder don't display allert message, only email field work widh placeholder:


Image title

Image title


phuonght's picture
phuonght
Thu, 03/10/2016 - 05:29

Hi,

Could you check again? Empty required fields will display alert one by one but not all at the same time. 

Pako204's picture
Pako204
Fri, 03/11/2016 - 06:58

Hi, I checked, but does not work

phuonght's picture
phuonght
Sat, 03/12/2016 - 02:54

So could you send us your site url and admin account by private comment? We would like to have a check in site.

phuonght's picture
phuonght
Wed, 03/16/2016 - 03:58

please open file application.js in folder sites\all\themes\md_make\js, delete lines from 231 to 244.

It will fix placeholder for IE9, with higher version there is placeholder by default. 

Pako204's picture
Pako204
Wed, 03/16/2016 - 11:25

hi, i do it but don't work ....

phuonght's picture
phuonght
Wed, 03/16/2016 - 23:19

It seems that you delete wrong lines while we need to delete below code:

/ IE 9 Placeholder fix /
$('[placeholder]').focus(function () {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function () {
var input = $(this);
if (input.val() == '' || input.val() == input.attr('placeholder')) {
input.addClass('placeholder');
input.val(input.attr('placeholder'));
}
}).blur();

Pako204's picture
Pako204
Thu, 03/17/2016 - 05:38

ok .. Perfect ..  Thanks

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.