Đang Thực Hiện

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.

Parameters:

- 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">

$(function(){

$('#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

});

</script>

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]();

}

});

});

</script>

Kỹ năng: Javascript

Xem thêm: 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

Về Bên Thuê:
( 12 nhận xét ) Napoli, Italy

Mã Dự Án: #1640729

3 freelancer đang chào giá trung bình $30 cho công việc này

AdamsK

Ready for service sir, thanks.

$30 USD trong 1 ngày
(44 Đánh Giá)
5.2
dracco

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

$30 USD trong 1 ngày
(22 Đánh Giá)
4.4
MimiFL

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

$30 USD trong 1 ngày
(5 Đánh Giá)
3.3
webphp

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

$30 USD trong 0 ngày
(0 Đánh Giá)
0.0