CY5's Profile User Rating: *----

Reputation: 15 Tradesman
Group:
Active Members
Active Posts:
378 (0.41 per day)
Joined:
28-September 12
Profile Views:
8,387
Last Active:
User is offline Today, 03:18 AM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   CY5 has not set their status

Posts I've Made

  1. In Topic: Attach event handler to table

    Posted 30 Mar 2015

    your code was very helpful thanks once again i attached it to keyup event and its working
  2. In Topic: Attach event handler to table

    Posted 30 Mar 2015

    Quote

    I’d go for
    var all_filled = !Array.prototype.filter.call(document.querySelectorAll('.b_txt'), function (box) {
        return box.value.trim().length === 0;
    }).length;
    
    


    As I see, there is also such an equivalent in jQuery.

    var all_filled = !$('.b_txt').filter(function () {
        return this.value.trim().length === 0;
    }).length;
    

    The above code will check empty string in all textboxes of class name?

    thanks @Dormilich its checking all the text boxes with class name
  3. In Topic: Attach event handler to table

    Posted 30 Mar 2015

    that's my question i will have to check content of every textbox every interval and if its filled alert. I want to avoid interval

    which is correct way to check textbox with empty string ?
    var text_box=jQuery(this).find('.b_txt').val();
    	    		if(text_box===''){
    	    			return false;
    	    		}
    
    

    OR
    var text_box=jQuery(this).find('.b_txt').val();
    	    		if(text_box.length>0){
    	    			return false;
    	    		}
    
    

    OR
    var text_box=jQuery(this).find('.b_txt').val();
    	    		if(!text_box){
    	    			return false;
    	    		}
    
    
  4. In Topic: Attach event handler to table

    Posted 30 Mar 2015

    well i have textboxes with same class name so will this do
    jQuery('.b_txt').on("change",function(){
              alert("table filled");
    });
    
    
  5. In Topic: Attach event handler to table

    Posted 30 Mar 2015

    for example :
    All the cells inside tables are not filled when the page is loaded but as user fills all the cells either with text or number it should alert "table filled"
    note:inside every cell there is textbox

    I think here you will get my point I want to raise the event when the table is filled with inputs or else do nothing.
    using setInterval is my last option to check every second whether table is filled or not

My Information

Member Title:
D.I.C Regular
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

CY5 hasn't added any friends yet.

Comments

CY5 has no profile comments yet. Why not say hello?