Locale Language Detection And Translation?
I am building an offline multi-page mobile application on Dreamweaver, and I am trying to make it so that the application can detect only certain
s and translate them to
Solution 1:
Using jQuery you could write a selector, that matches the first h1 element, but not the second. For example:
'h1.TopText'
(select h1 elements having ToText class attribute) or 'h1#HouseT'
(selecting h1 elements having HouseT as id) and then go on and manipulate it's contents.
Here is a working example:
$('h1.TopText').html('some other text');
<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><h1class="TopText"id="HouseT">Apartment</h1><imgsrc"http://placehold.it/100x100"/><h1class="BotText"id="HouseB">Apartment</h1>
Post a Comment for "Locale Language Detection And Translation?"