Vote count: 0 I've created a custom dropdown element. The number of options it can have is based on a Database Table (I haven't created the Table yet). Like the number of options can be 4 or even 5 or anything for that matter. I'll use PHP to give the number of options for the dropdown. Each of the options are in an li tag. The li siblings are inside the ul tag. I have a CSS file which animates the li items. But instead of animating them all at once (in which case I would just animate the ul and would get the same effect), what I want to do is to animate them one by one. Each li will have a delay which is progressive. For example if the first li has a 0s delay and a duration of 300ms then th...
ادامه مطلبVote count: 0 im creating a class where i would be able to have in my constructor dynamic variables, but im not sure if im doing the right way or if it is valid. Example static: my class: class MyClass{ constructor(options){ this.propertyname = options.value; this.propertyname = options.value; this.propertyname = options.value; } } Does this example would be the same of the above? My only issue would be that the example i have wasnt making the options value assign to "this." my class: class MyClass{ constructor(options){ for (var property in options) { if (options.hasOwnProperty(property)) { this[property] = options[property]; } } } } Calling: var example = new MyClass({ property1: "Somethin...
ادامه مطلبVote count: 0 Working on an ASP.NET website. I have a page where there are alot of dynamically created textboxes. In addition to these textboxes I link dynamic javascript calculations to certain textboxes as well. This is all database driven. For example.... (pseudo-code) textbox1 = "10" textbox2 = "4" textbox3 = textbox 1 + textbox 2 (displays "14") All of the textboxes are working great, dynamically calculating correctly, etc.... BUT, I need to format them with commas, if applicable. All of these dynamic textboxes have a css class of 'dynamic_control'. Question: I would like to autoformat numbers > 999 with commas. (AFTER any calculations are finalized.) So, what I did was this... $(docume...
ادامه مطلب