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

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpDiscuz community!

Merry Christmas and Happy Holidays! 🎄

[Solved] How to change the value of an element

3 Posts
2 Users
0 Reactions
869 Views
Posts: 52
Topic starter
(@yuri-vasilchenko)
Trusted Member
Joined: 4 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: 8205
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 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: 4 years ago

Trusted Member
Posts: 52

@asti

Yes, it works great. Thank you!


Share: