About this question
I am trying to search all input elements that start with a particular set of characters such as 'idAcc' where my VF page has two input fields with id = idAccFN and id= idAccLN respectively.
I'm using the below JQuery syntax but that's working partially ... Explained in the comments below .. Kindly help.
var j$ = jQuery.noConflict();
j$(document).ready(function(){
jQuery( 'input[id$=Name]' ).val('Foo'); // ID ending with Name working
jQuery( 'input[id^=idAcc]' ).val('Apu') //Id starting with idAcc not working
});