cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
WordPress Filters
April 19, 2013
6:50 pm
jkirker
Guest

Hi, I'm trying to add a filter to add some javascript code to a select variable and I'm having trouble identifying/referencing the correct section…

Any help would be great…

Here's what I'm trying to do – I don't think 'get_the_content' is correct.  Any quick help would be MASSIVELY appreciated…

add_filter( 'get_the_content', 'form1' );
function foldingdoorform( $formx ) {
  $old = '<select name="Quote-or-Order:"';
  $new = '<select name="Quote-or-Order:" onchange="Hide(this.value);"';
  $formx = str_replace( $old, $new, $formx );
  return $formx;

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3763

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5359

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)