If Value Equals
Apr 13, 2006variable waarde has a certain amouint of 'z' and 'w' in them I wrote this if:
if(waarde == 'z')
// now I want to know how many 'z' there are found in "waarde"
// How do I do that?
variable waarde has a certain amouint of 'z' and 'w' in them I wrote this if:
if(waarde == 'z')
// now I want to know how many 'z' there are found in "waarde"
// How do I do that?
I want to make a td to rowspan when td has the same value? For exaple like this:
Before :
After :
I am using jquery, but in some pages I cannot use it but I need to write js code like: $('document').ready(myInitFunction) How can i write js to do this work? is it document.onLoad() event?
View 3 Replies View RelatedI'm trying to retrieve the number of "option" elements with the "selected" attribute set to true from a "select" control in the DOM. To ease my debugging I'm using the "alert" javascript tool to display the number of such options. Here is the javascript code :
alert($('#possible_rarities > option[selected="true"]').length); "possible_rarities" is the identifier of the "select" control in the DOM. Before launching the display, I have selected an option and checked that the "selected" attribute was set to true via Firebug. But the resut display is 0 after executing the script in Firefox. I do not meet this problem when running my script in IE.
im doing a web page to order train tickets, and i have 2 text boxes where the user inputs a outbound date and a return date if applicable what i want is to check whether the second date either equals or is after the outbound date! im doing it in javascript
View 1 Replies View Related