Replacing a place in opera mini

I am currently using this code to replace placeholder functionality where it is not available. I have a jQuery click listener that changes the placeholder text:

$('.contact-type').change(function(event) { $contactInfo = $(this).closest('div').prev().find('#contact-info'); $contactInfo.removeClass(); $contactInfo.addClass('form-control input-lg'); $contactInfo.addClass('validate[required,custom[line]]'); $contactInfo.attr("placeholder", "LINE ID"); }) 

The problem is that when using jquery placeholder, when I changed the placeholder text and then I called $('input, textarea').placeholder(); . The new placeholder does not change. How can I change the placeholder when changing the value?

+8
javascript jquery html html5 opera-mini
source share
3 answers

Check if your version of the opera is:

CLICK ME :)

It may just not work, because the developers did not code it.;)

+1
source share

there is a whole bunch of placeholders that you could check and see if it could work for the opera:

https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills#web-forms--input-placeholder

Modernizr is a very good tool that is useful for checking html5 backward compatibility in older browsers.

More digging and, apparently, this site gives the opera a mini-attention when adding placeholders (although I myself have not tested it since the mini opera is not installed on my computer):

http://www.mightyminnow.com/2013/09/mightyminnow-plugin-html5-jquery-polyfill/

Give it too. I know this can be frustrating, I had to make tons of settings in a recent project in order to support ie7 stuff.

+1
source share

Opera-mini does not support the placeholder attribute for HTML input. You can check whether Opera-Mini supports something or not on Mr.TK's website: http://caniuse.com/input-placeholder .

0
source share

All Articles