The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
How to change the v...
 
Share:
Notifications
Clear all

[Solved] How to change the value of an element

3 Posts
2 Users
0 Reactions
514 Views
Posts: 52
Topic starter
(@yuri-vasilchenko)
Trusted Member
Joined: 2 years ago

Hi!

I would like to change the value for this element:

Notif 8

Now:

<div class="wpdiscuz-subscribe-form-button">
<input id="wpdiscuz_subscription_button" class="wpd-prim-button" type="submit" value="›" name="wpdiscuz_subscription_button">
</div>

New:

<div class="wpdiscuz-subscribe-form-button">
<input id="wpdiscuz_subscription_button" class="wpd-prim-button" type="submit" value="OK" name="wpdiscuz_subscription_button">
</div>

Please tell me which files need to be changed.

I don’t want to and can’t change using translation, since the current value is also used in other elements of the site.

 

2 Replies
Asti
Posts: 7573
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

You should use the jQuery code like this one: 

jQuery(document).ready(function(){
    jQuery('#wpdcom .wpdiscuz-subscribe-bar #wpdiscuz_subscription_button').val('ok');
});

This article should be helpful for you: https://www.collectiveray.com/add-javascript-to-wordpress

1 Reply
(@yuri-vasilchenko)
Joined: 2 years ago

Trusted Member
Posts: 52

@asti

Yes, it works great. Thank you!

Share: