Selecting by ID's or ClassNames is simple with jQuery:

$("#oneid, #anotherid").method(....);
$(".oneclass").method(...);

but thinking in the hypothetical of you need to use non standard attributes, this example works for
me:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<title>PageTitle</title>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.1.3.1.pack.js";></script>
<script type="text/javascript">
$(document).ready(function(){
$("#search_box").keyup(function(){
$("div").hide();
$("[EMAIL PROTECTED]"+this.value+"]").show();
});
});
</script>
</head>
<body>

<form>
<input id="search_box" />
</form>

<div name="abc">ABC</div>
<div name="fds">FSD</div>
<div name="rwe">REW</div>
<div name="aba">ABA</div>

</body>
</html>

NccWarp9 escribió:
Thanks for the comment, I wrote this in notepad and did not check for,
or .. didn't care if it complied with standards, instead of name tag
any tag can be used.like ID etc.
The whole point was to provide an example on which someone could
expand on.

On Aug 21, 7:31 pm, SeViR <[EMAIL PROTECTED]> wrote:



--
Best Regards,
José Francisco Rives Lirola <sevir1ATgmail.com>

SeViR CW · Computer Design
http://www.sevir.org
Murcia - Spain

Reply via email to