Suoritettu

Convert from Javascript into JQuery

Hi,

I need to convert the below code to the pure jquery code.

Currently there is javascript elements like getElementById etc.

The result should be in pure jquery code.

There is no additional [login to view URL] converting and should be done with help of this code.

I am expecting that you show on live page that your submitted code is working as acceptance rule.

----------------------------------Checkbox Start-----------------------------

20.07.2015||Reisen||12.00||250.00||6000.00||0.080||9720.00

18.08.2015||Meeting mit Experten||5.00||250.00||0.00||0.080||1350.00

18.07.2015||Aktenstudium||11.00||250.00||0.00||0.080||2970.00

-----------------------------------Checkbox End-----------------------------

User can select the above checkboxes (one or all) and the function should calculate the values.

--------------------------CODE to Convert to JQuery START HERE---------------------------------

$('#r_NEStd').hide();

$("input[name='x_Posten[]'], input[name='x_NE[]']").click(function() { //

Field2 has multiple inputs(checkboxes) so they should be selected by name

[login to view URL]("x_Total").readOnly = true;

[login to view URL]("x_Auslagen").readOnly = true;

[login to view URL]("x_RBetrag").readOnly = true;

if ($("input[name='x_Posten[]']:checked").val() &&

$("input[name='x_NE[]']:checked").val()) {

[login to view URL] = '';

var Anzahl = 0;

var Auslagen = 0;

var AuslagenMwSt = 0;

var Total = 0;

var splitted;

var nestdsatz = [login to view URL];

var e = [login to view URL]("x_Vorschuss");

var VorschussValue = [login to view URL][[login to view URL]].value;

var nestdsatz = [login to view URL];

var elements = [login to view URL]("x_Posten[]");

for (i = 0; i < [login to view URL]; i++) {

if (elements[i].checked) {

splitted = elements[i].[login to view URL]("||");

Auslagen = Auslagen + +parseFloat(splitted[4]);

AuslagenMwSt = AuslagenMwSt + +(parseFloat(splitted[4]) *

(1 + parseFloat(splitted[5])));

Anzahl = Anzahl + +parseFloat(splitted[2]);

Total = Total + +(parseFloat(splitted[2] * nestdsatz) *

(1 + parseFloat(splitted[5])));

}

}

[login to view URL] = [login to view URL](2);

[login to view URL] = (Total + AuslagenMwSt).toFixed(2);

[login to view URL] = ([login to view URL](((Total +

AuslagenMwSt) - VorschussValue) * 20, 0) / 20).toFixed(2);

[login to view URL] = "rechnungne";

} else { // WENN x_Posten oder NE nicht oder nur ein Feld gelickt ist

[login to view URL] = '';

var Anzahl = 0;

var Auslagen = 0;

var Total = 0;

var splitted;

var e = [login to view URL]("x_Vorschuss");

var VorschussValue = [login to view URL][[login to view URL]].value;

var nestdsatz = [login to view URL];

var elements = [login to view URL]("x_Posten[]");

for (i = 0; i < [login to view URL]; i++) {

if (elements[i].checked) {

splitted = elements[i].[login to view URL]("||");

// Auslagen = Auslagen+ +(parseFloat(splitted[4])*

(1 + parseFloat(splitted[5])));

Auslagen = Auslagen + +parseFloat(splitted[4]);

Anzahl = Anzahl + +parseFloat(splitted[3]);

Total = Total + +parseFloat(splitted[6]);

}

}

[login to view URL] = [login to view URL](2);

[login to view URL] = (Total).toFixed(2);

[login to view URL] = ([login to view URL](((Total) -

VorschussValue) * 20, 0) / 20).toFixed(2);

[login to view URL] = "rechnung";

}

});

--------------------------CODE to Convert to JQuery END HERE---------------------------------

Taidot: Javascript, jQuery / Prototype

Näytä lisää: jquery full tutorial, jquery function, jquery tutorial point, convert jquery to javascript converter online, jquery program, convert java to jquery, jquery php, jquery functions tutorial, javascript jquery photo gallery, convert javascript, javascript jquery xml weather parser, convert javascript php convert, convert javascript css, convert javascript aspnet, convert javascript function, convert javascript ebay use, html css flash javascript jquery freelancer, convert javascript code jquery, javascript convert mootools jquery

Tietoa työnantajasta:
( 16 arvostelua ) Zürich, Switzerland

Projektin tunnus: #18970411

Myönnetty käyttäjälle:

karand

yes sure I can help you right now.

$20 USD 1 päivässä
(100 Arvostelua)
5.3

9 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

kkc1985612

Hi! i've read your demands carefully. I can convert to jquery wonderful. you can check [login to view URL] and, [login to view URL] , [login to view URL], [login to view URL] I built. if you need m Lisää

$30 USD 1 päivässä
(11 arvostelua)
4.0
SmithZhang

Hi, How are you? My name is Zi Lin have much experience with js and jquery. I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. I have worked on similar p Lisää

$25 USD 1 päivässä
(7 arvostelua)
3.5
mainHELIOS

⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐ IN 1 HOUR I CAN DO IT FOR YOU WITH 100% quality work. ⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐

$25 USD 10 päivässä
(5 arvostelua)
3.1
KimHyokJun

Hello there. I have read your description carefully. I have a wealth of experience with jQuery. If you employ me, I`ll do my best for you and perhaps I will satisfy you by my creative work. I want to discuss about Lisää

$10 USD 1 päivässä
(4 arvostelua)
2.8
serinebejanyan

Hi, My name is Serine. I have 4 year experience Web Design and Development. I believe my strong points are my Creativeness and Punctuality. My #1 goal will always be to meet your needs and deadline. Listed below are Lisää

$20 USD 1 päivässä
(4 arvostelua)
2.7
rathipankaj2005

Hi Hope you are doing well.I have 7yrs of experience on web developement with various assignment completed successfully and looking forward for many more.I have good exposure in php mysql html css javascript jque Lisää

$20 USD 1 päivässä
(2 arvostelua)
1.6
liuchongmin

Hi, How are you? I have good experience for javascript & Jquery You can give test job for testing. I will work free for testing job. If you hire me,I think you will get good result within short time. I promise t Lisää

$30 USD 1 päivässä
(0 arvostelua)
0.0
luisangellopez97

Buenas, actualmente trabajo con html / css / javascript(jquery) y ya tengo mas de 3 años de experiencia, resolvere tu problema de la mejor forma posible. Hi, I'm currently working with html / css / javascript (jqu Lisää

$15 USD 1 päivässä
(0 arvostelua)
0.0