En cours

Simple javascript

In according to the following rules, I need a simple javascript that on form submit hide a div content and shows another one.

on [url removed, login to view]: <form id="form_promotion" class="ss_promotion_form" method="post" action="/facebook/form/6320768" novalidate="novalidate">

Hide this div : <div id="content1" class ="instruction">xxxxxxx</div>

Show this div : <div id="content2" class = "thanks"> xxxx </div>

these are the Event Handling Code:

Events Reference

Event: [url removed, login to view]

Descrption: User successfully submits a Custom Form or Promotion widget.


- response -> The response object returned by the Ajax call that submitted the form.

- form -> A jQuery reference to the form being submitted.


The general steps for handling events are:

Add a Code widget to your tab and, optionally, change the name to “Event Handler” (or something equally descriptive).

Paste the following code into the widget:

<script type="text/javascript">


$('#WIDGET_ID').bind('[url removed, login to view]', function(event) {

// code for handling the event goes here


// repeat $('#WIDGET_ID')... block for additional event handlers



Replace WIDGET_ID with the CSS ID of the widget where the event comes from.

Replace [url removed, login to view] with the actual name of the event you are handling (see Events Reference below).

If desired, add additional event handlers.


Currently, the Voting widget doesn’t offer an option to automatically share an item that is voted on. By adding the code below to a Code widget, we can add this feature:

<script type="text/javascript">

$(function() { // <- This function gets executed when the document is loaded and ready

// create a handler for the [url removed, login to view] event

$('.ss_voting').on('[url removed, login to view]', function(event, entry) {

// search for a share link within the entry that was voted on

var share_link = $('.share_link', entry);

// test if the share link exists

if ([url removed, login to view] > 0) {

// a link was found, so "click" it for the user to invoke the share prompt

[url removed, login to view]();





Compétences : Javascript

en voir plus : this class jquery, test a javascript, promotion for events, jquery class, entry widget, div search, simple javascript, bind, event javascript, show hide form javascript, add div div, jquery custom show hide, javascript function response, script add facebook link, jquery feature, simple search javascript, paste javascript, jquery ajax show hide, javascript add css, facebook create event script, jquery search css, ajax hide show, javascript css show, simple voting facebook, javascript hide show

Concernant l'employeur :
( 12 commentaires ) Napoli, Italy

Nº du projet : #1640729

3 freelance font une offre moyenne de $30 pour ce travail


Ready for service sir, thanks.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(44 Commentaires)

I can do this job in a short time. Ready to start right away. Dracco.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(22 Commentaires)

Hi i m really interested in working with you, plz check you pm for more detail.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(5 Commentaires)

Hello, i can do it.i am expert in javascript and [login to view URL] check PMB.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(0 Commentaires)