Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 189
Total: 189

Author Topic: Onclick javascript help  (Read 4216 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Onclick javascript help
« on: July 18, 2016, 01:36:39 pm »
Hi :)

Have a simple javascript request:

Code: [Select]
<input type="checkbox" name="postasforumstaff" id="check_postasforumstaff" value="1" class="check" />

<input placeholder="'.$txt['changeposteridno'].'" ONCLICK="CHECK THE CHECKBOX ABOVE" type="text" name="staffid" id="text_staffid" size="5" />

Basically, click the input textbox (second one) automatically checks the input checkbox (first one).

How do I do this?

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
5454 Views
Last post February 15, 2007, 05:24:44 pm
by SMFHacks
2 Replies
3872 Views
Last post May 31, 2012, 12:48:36 pm
by wizi_emre
0 Replies
3677 Views
Last post February 09, 2015, 11:20:26 pm
by Empire

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal