3 Replies - 517 Views - Last Post: 06 May 2010 - 01:13 PM

#1 Blade2021  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 204
  • Joined: 31-October 08

Replacing text

Posted 23 March 2010 - 06:50 PM

How can you replace text with jquery (is it even possible?)

Ex.
.click(function() {  

//*** REPLACE "this" ($(this)) *** with loading...



Is This A Good Question/Topic? 0
  • +

Replies To: Replacing text

#2 girasquid  Icon User is offline

  • Barbarbar
  • member icon

Reputation: 108
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: Replacing text

Posted 24 March 2010 - 12:07 PM

Take a look at .text() in the jQuery API.
Was This Post Helpful? 1
  • +
  • -

#3 webhoststudent  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 05-April 10

Re: Replacing text

Posted 06 April 2010 - 08:33 AM

or...

<a href="#" id="clickToStartLoading">Click to start loading</a>
<script type="text/javascript">
$('#clickToStartLoading').click(function(){
$(this).html('loading...');
});
</script>


Was This Post Helpful? 0
  • +
  • -

#4 oasisjoel  Icon User is offline

  • D.I.C Regular

Reputation: 4
  • View blog
  • Posts: 274
  • Joined: 11-September 08

Re: Replacing text

Posted 06 May 2010 - 01:13 PM

It depends on where you are going to use it. Could you post your html codes, and where to replace there
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1