I need to replace some text that is on the page within the body tag. I am using javascript but have jquery available if needed. I basically need to replace test® ... |
Given the following javascript (jquery)
$("#username").keyup(function () {
selected.username = $("#username").val();
...
|
I cannot upgrade my jQuery, and I was wondering why this function is not existing. How can I implement this:
$('#block-block-1 .content').replace(/^\s*|\s*$/g,'');
What I get is: "function doesn't exist"
thanks
|
If I have text like this;
<p> </p>
<p>this is the real text</p>
<p> </p>
<p>more</p>
What I need is a piece of jQuery that will replace the first instance only of <p> </p> with ''.
So the result after ... |
So im using jquery to search and replace certain text in my html page. Which is:
function offon(){
$("#sidebar li").each(function(){
$(this).html($(this).html().replace(/Off Premise/, "Liquor Store"));
...
|
Hi
I need to replace a text within div that says "Please wait..." with "Ok.Its done." after a random delay.Please help.Thanks in advance.
|
I have a drop down menu that looks like this:
It works fine, but I need to replace the text "Choose an Action" with whatever link the user selects ... |
|
I have this code for replacing selected text: (it putts "1" and "2" before and after selected text):
var content=$("#text").html();
if (window.getSelection) {
// not IE case
var selObj = window.getSelection();
var ...
|
This is my code so far:
$("h1.intro:contains('|')").each(function() {
$(this).html($(this).html().replace('|','</span><br /><span>'))
});
This works just once, but it has to work for all of those "|"...
any ideas?
|
I would like to replace text information in my (#loader) div. I am using two functions show_info() and replace_info().
$('#measure_submit').click(function(){
show_info("Sending params ...");
...
|
I have the following code.. in this I am trying to find the particular text and replace with desired one.. this is working fine if the string is in same case.. ... |
I am setting the text inside the jgrowl message box.
Here is the example:
function findID(whichID, command){
...
|
I have a database that contains company information (address, telephone etc)
On some of the telephone numbers it will have an international code: +44 (0) 123 12345
where the (0) will be different ... |
Need to replace colons wherever they're found in specific elements with id's. This works but for some reason also replaces the styling attached to the elements:
$(document).ready(function(){
$("#element").each(function () { //for ...
|
How do I replace any string in jquery let's say I have a string "-9o0-9909" and I want to replace it with another string.
|
I've got a jQuery date & time picker where I've constrained the input to either 00:00 or 12:00 so I can make it work in a kind of half day/full day ... |
I am having a hard time selecting text and replacing that selection when there are multiple occurrences. It always reverts to the first occurrence and replaces it.
Here is the scripting I ... |
Is there a more elegant way replacing a text inside an html element than :
$el = $("#myDiv");
$el.html( $el.html().replace("something", "something new") );
|
Have some text that needs to be replaced, searched around this website for all results with similar titles and no luck.
Currently the text is Handling Fee: and I need it to ... |
I have a simple javascript code which replaces the page content....by contents of another file(test2.html)
Code:
$(document).ready(function(){
$("[href='#']").click(function() {
function getcontent(url, id) {
...
|
I've the following div:
<div id="target" >hello(first), hello(second), hello(third), hello(fourth)</div>
and following code based on this discussion:
$(document).ready(function(){
$('#target').bind('mouseup', function(){
...
|
this is the html with the text in between brackets:
<div class="someClass" style="width: 100%; ">Dealing flop: [Ks, 5c, 8h]</div>
this is what i want to end up with:
<div class="someClass" style="width: 100%; ">Dealing flop: ...
|
How can I replace a specific text with HTML objects?
example:
var text = "some text to replace here.... text text text";
var element = $('<img src="image">').event().something...
function ReplaceWithObject(textSource, textToReplace, objectToReplace);
So I want to ... |
I have a list which looks like the following:
<ul id="offers">
<li class="unique-id-here">
<span class="country">US</span>
<span class="clicks">192</span>
<span class="ctr">9%</span>
</li>
</ul>
And i am trying to update the .clicks with new values every 5 seconds.
So my though was, select ... |
I'm starting with jQuery and I need this is a project.
For example I have this:
<ul id="grid">
<li class="box1">Lorem ipsum dolor sit amet!</li>
<li class="box2">Lorem ipsum dolor sit amet!</li>
...
|
I have the following code
$("#FOO").hover(function() {
$(this).html('<p><a href="somepage.php" target="_self">first text</a></p>');
}, function() {
$(this).html('<p><a href="somepage.php" target="_self">hovered text</a></p>');
});
Is it improper to put <p> ... |
I have a bit of jQuery I have been using to set default text in a search box, remove the text when the user enters the search box, and then adds ... |
I have asked this question earlier, please click here!
this is extension to the question
This is my jQuery
<script>
$(document).ready(function () ...
|
i am using jquery replaceText plugin. with this plugin i can successfully replace text of an element like this:
<div>some text to be replaced here.</div>
<script type="text/javascript">
$(function(){
$("div").replaceText("some ...
|
what I have tried so far here : http://jsfiddle.net/yusaf/VVEY9/26/
I have a problem with my pause and play replacing and reverting
- How can I have the
.pause hidden on page load
- when ...
|
|
|
|
|
|
|